ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Why can not rm or rmtf fonts be set up by \definebodyfont macro?
Date: Sun, 5 Apr 2009 15:31:04 +0200	[thread overview]
Message-ID: <4108BB44-CE75-4FD7-AFA0-91BA58B3CD20@gmail.com> (raw)
In-Reply-To: <c3f901470904050607k4829e00dn9cd82b29198a73d@mail.gmail.com>


Am 05.04.2009 um 15:07 schrieb Yanrui Li:

> I want to know why I can not override the preloading rm font.

Dunno but it works for a complete definition.

\definefontsynonym [Song]     [file:AdobeSongStd-Light]
\definefontsynonym [Hei]      [file:AdobeHeitiStd-Regular]
\definefontsynonym [FangSong] [file:AdobeFangsongStd-Regular]
\definefontsynonym [Kai]      [file:AdobeKaitiStd-Regular]

\starttypescript [serif] [default] [size]

   \definebodyfont [12pt] [rm]
     [tf=Song sa 1,
      bf=Hei sa 1,
      it=Kai sa 1,
      sl=FangSong sa 1]

\stoptypescript

\starttypescript [serif] [chinese]
   \definefontsynonym [Serif] [Song]
\stoptypescript

\definetypeface [chinese] [rm] [serif] [chinese] [default]

\setscript[hanzi]
\setupbodyfont[chinese,rm,12pt]

\starttext

\startlines
\tf 今时之人不然也,以酒为浆,以妄为常,
\bf 醉以入房,以欲竭其精,以耗散其真,
\it 不知持满,不时御神,
\sl 务快其心,逆于生乐,起居无节,故半百而衰也。
\stoplines

\stoptext

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2009-04-05 13:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-05 13:07 Yanrui Li
2009-04-05 13:31 ` Wolfgang Schuster [this message]
2009-04-05 15:16   ` Yanrui Li
2009-04-05 19:03     ` Wolfgang Schuster
2009-04-05 20:04       ` Hans Hagen
2009-04-05 20:11         ` Wolfgang Schuster
2009-04-05 21:14           ` Hans Hagen
2009-04-05 21:22             ` Wolfgang Schuster
2009-04-05 21:25               ` Hans Hagen
2009-04-05 21:36                 ` Wolfgang Schuster
2009-04-05 23:49                   ` Yanrui Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4108BB44-CE75-4FD7-AFA0-91BA58B3CD20@gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).