[NTG-context] can not get the quotation marks from the fallback fonts

Wolfgang Schuster schuster.wolfgang at gmail.com
Wed Jan 8 07:56:32 CET 2014


Am 08.01.2014 um 03:23 schrieb Li Yanrui (李延瑞) <liyanrui.m2 at gmail.com>:

> Hi,
> 
> i find the quotation marks in those chinese fallback fonts can not work as before. They always be replaced with the latin fonts. please see the following example:
> 
> \definefontsynonym[pagella][name:texgyrepagellaregular]
> \definefontfallback[song][name:adobesongstd][0x00400-0x2FA1F]
> \definefontsynonym[fbsong][pagella][fallbacks=song]
> \definefont[newsong][fbsong]
> 
> \starttext
> \newsong 中文的\quotation{引号}。
> \stoptext
> 
> i have another question, when i make texgyrepagellaregular as the fallback font for adobesongstd, it can not work. see the following example:
> 
> \definefontsynonym[song][name:adobesongstd]
> \definefontfallback[pagella][name:texgyrepagellaregular][0x0000-0x0400]
> \definefontsynonym[fbsong][song][fallbacks=pagella]
> \definefont[newsong][fbsong]
> 
> \starttext
> \newsong 夹杂 English 的中文文本
> \stoptext
> 
> the above "English" word is still display with adobesongstd but not patella.

You have to use \definefontfallback[...][...][...][force=yes] .


When you want to use these font setting for your whole document it’s better to set the fallback for the body font:

\definefallbackfamily [mainface] [serif] [Adobe Song Std] [range:chinese] % [range:chinese] == [preset=range:chinese]
\definefallbackfamily [mainface] [serif] [Adobe Song Std] [range={201C,201D}]
\definefontfamily     [mainface] [serif] [TeX Gyre Pagella]

\setupbodyfont[mainface]

\starttext
中文的\quotation{引号}。
\stoptext


Wolfgang


More information about the ntg-context mailing list