Hi, whats wrong with this code? "Times New Roman.ttf" states to be an otf font. But the "\sc" gives no Times New Roman: \definefontfeature[default][default] [mode=node,script=latn,smcp=yes] \definefontfeature[smcp][mode=node,smcp=yes] \unexpanded\def\sc{\addfs{smcp}} \starttypescript [serif] [TimesNewRomanPSMT] [name] \setups[font:fallback:sans] \definefontsynonym [Serif] [file:Times New Roman.ttf] [features=default] \definefontsynonym [SerifBold] [file:Times New Roman Bold.ttf] [features=default] \definefontsynonym [SerifItalic] [file:Times New Roman Italic.ttf] [features=default] \definefontsynonym [SerifBoldItalic][file:Times New Roman Bold Italic.ttf][features=default] \stoptypescript \starttypescript[TheTimes] \definetypeface [TheTimes] [rm] [serif] [TimesNewRomanPSMT] [default] \stoptypescript \usetypescript[TheTimes] \setupbodyfont[TheTimes, 10pt]\setupinterlinespace[line=12pt] \starttext \sc{Name} \stoptext ------- Steffen
Am 25.01.2012 um 23:12 schrieb Steffen Wolfrum:
Hi,
whats wrong with this code?
"Times New Roman.ttf" states to be an otf font.
But the "\sc" gives no Times New Roman:
The font has now smcp feature and the setting is ignored. Here is the info list from my system: mtx-fonts | mapping : timesnewromanpsmt mtx-fonts | fontname: timesnewromanpsmt mtx-fonts | fullname: timesnewroman mtx-fonts | filename: /Library/Fonts/Microsoft/Times New Roman.ttf mtx-fonts | family : timesnewroman mtx-fonts | weight : normal mtx-fonts | style : normal mtx-fonts | width : normal mtx-fonts | variant : normal mtx-fonts | subfont : mtx-fonts | fweight : conflict: book mtx-fonts | mtx-fonts | gpos features: mtx-fonts | mtx-fonts | feature script languages mtx-fonts | mtx-fonts | kern cyrl dflt mtx-fonts | grek dflt mtx-fonts | latn dflt lth mtx-fonts | mark arab dflt urd mtx-fonts | cyrl dflt mtx-fonts | grek dflt mtx-fonts | hebr dflt mtx-fonts | latn dflt lth mtx-fonts | mkmk arab dflt urd mtx-fonts | cyrl dflt mtx-fonts | grek dflt mtx-fonts | latn dflt lth mtx-fonts | mtx-fonts | gsub features: mtx-fonts | mtx-fonts | feature script languages mtx-fonts | mtx-fonts | anum arab URD dflt mtx-fonts | ccmp arab dflt urd mtx-fonts | grek dflt mtx-fonts | hebr dflt mtx-fonts | latn dflt lth mtx-fonts | dlig hebr dflt mtx-fonts | fina arab dflt urd mtx-fonts | init arab dflt urd mtx-fonts | isol arab dflt urd mtx-fonts | liga arab dflt urd mtx-fonts | locl arab urd mtx-fonts | latn lth mtx-fonts | medi arab dflt urd mtx-fonts | rlig arab dflt urd mtx-fonts | tcom all all mtx-fonts | tlig all all mtx-fonts | trep all all Wolfgang
participants (2)
-
Steffen Wolfrum
-
Wolfgang Schuster