Changes

Jump to navigation Jump to search
69 bytes removed ,  03:12, 4 September 2010
m
no edit summary
<texcode>
\definefontfeature[thetimes][default][mode=node,featurefile=times_fl.fea] \starttypescript [serif] [TimesNR] [name] \setups[font:fallback:serif] \definefontsynonym [Serif] [file:Times New Roman.ttf] [features=thetimes] \definefontsynonym [SerifBold] [file:Times New Roman Bold.ttf] [features=thetimes] \definefontsynonym [SerifItalic] [file:Times New Roman Italic.ttf] [features=thetimes] \definefontsynonym [SerifBoldItalic][file:Times New Roman Bold Italic.ttf][features=thetimes] \stoptypescript \starttypescript[TimesNR] \definetypeface [TimesNR] [rm] [serif] [TimesNR] [default] \stoptypescript \starttypescript[TheTimes] \definetypeface [TheTimes] [rm] [serif] [TimesNR] [default] \stoptypescript \mainlanguage[de] \usetypescript[TheTimes] \setupbodyfont[TheTimes, 10pt]
\starttext
Hoffnung finden: fliegen
\stoptext
</texcode>
The feature file that is used "times_fl.fea" looks like this:
<pre>
lookup fligatures { lookupflag 0; sub \f \i by \fi; sub \f \l by \fl; } fligatures;
feature liga { script DFLT; language dflt; lookup fligatures; script latn; language dflt; lookup fligatures; } liga;
</pre>
<texcode>
\definefontfeature[thetimes][default][mode=node,featurefile=times_kern.fea] \starttypescript [serif] [TimesNR] [name] \setups[font:fallback:serif] \definefontsynonym [Serif] [file:Times New Roman.ttf] [features=thetimes] \definefontsynonym [SerifBold] [file:Times New Roman Bold.ttf] [features=thetimes] \definefontsynonym [SerifItalic] [file:Times New Roman Italic.ttf] [features=thetimes] \definefontsynonym [SerifBoldItalic][file:Times New Roman Bold Italic.ttf][features=thetimes] \stoptypescript
\starttypescript[TimesNR] \definetypeface [TimesNR] [rm] [serif] [TimesNR] [default] \stoptypescript
\starttypescript[TheTimes] \definetypeface [TheTimes] [rm] [serif] [TimesNR] [default] \stoptypescript
\mainlanguage[de] \usetypescript[TheTimes] \setupbodyfont[TheTimes, 10pt]
\starttext
„W
\stoptext
</texcode>
The feature file that is used here "times_kern.fea" looks like this:
lookup MyKerns { lookupflag 0; pos \quotedblbase \W -150; } MyKerns;
feature kern {
script DFLT;
language dflt ; lookup MyKerns;
script latn;
language dflt ; lookup MyKerns; } kern;
18

edits

Navigation menu