Am 13.10.2013 um 11:56 schrieb Zhichu Chen <zhichu.c...@gmail.com>:

> Thanks for the descriptions. I have made a small test and turns out the 
> "regularfont" has to be assigned to something or the other "xxxfont"s won't 
> have any effects.
> 
> Here's my code:
> =================================================
> \definefallbackfamily [mainface] [serif] [adobesongstd]
>   [range={0x00400-0x2FA1F}%
>   ,regularfont=name:adobesongstdlight%
>   ,italicfont=name:adobefangsongstdregular%
>   ,boldfont=name:adobeheitistdregular%
>   ,bolditalicfont=name:adobekaitistdregular%
>   ,force=yes%
>   ,features=song%
>   ]
> =================================================
> and if I remove the "regularfont=..." line, the boldface Chinese characters 
> will use the Adobe Song Std font as well. Same thing happened when I used the 
> "preset=xxx" option which I don't know if it is intended to behave like that, 
> by the way.     

I can fit this, it’s a side effect for font families with a single font, e.g. 
Adobe Song Std which has only the Light font but no files for regular, bold etc.

> Oh, and off the topic, can I use "effect" to assign the fonts? Like if I have 
> defined
> =================================================
> \defineeffect[mybold][alternative=both,rulethickness=\dimexpr\bodyfontsize/10\relax]
> =================================================
> I would like to use this effect to apply to my bold fonts, maybe:
> =================================================
> \setupfontfamily [serif] [DejaVu Serif] [boldfont=effect:mybold]
> =================================================
> I know this has nothing to do with this module. I just thought this might be 
> interesting.

That’s not possible but you can the slant and extend options from 
\definefontfeature.

http://wiki.contextgarden.net/Simplefonts#Faking_italics_and_bold_fonts

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to