Hi, Myriad Pro is not working in recent version of ConTeXt (the same source works well in last release). Here is the code: \starttypescript[all][myfont][name] \definefontsynonym[Myriad][MyriadPro-Regular] \definefontsynonym[MyriadBold][MyriadPro-Bold] \definefontsynonym[MyriadItalic][MyriadPro-It] \definefontsynonym[MyriadBoldItalic][MyriadPro-BoldIt] \stoptypescript \starttypescript[sans][myfont][name] \definefontsynonym[Sans][Myriad] \definefontsynonym[SansBold][MyriadBold] \definefontsynonym[SansItalic][MyriadItalic] \definefontsynonym[SansBoldItalic][MyriadBoldItalic] \definefontsynonym[SansSlanted][MyriadItalic] \definefontsynonym[SansBoldSlanted][MyriadBoldItalic] \definefontsynonym[SansCaps][Myriad] \stoptypescript \definetypeface [myfont] [ss] [sans] [myfont] [default] \usetypescript[myfont] \setupbodyfont[myfont,ss, 12pt] \starttext \input zapf \stoptext Here is the log: This is luaTeX, Version snapshot-0.31.3-2008122922 (a1.tex ConTeXt ver: 2009.01.18 14:39 MKIV fmt: 2009.1.30 int: english/english system : cont-new loaded (D:/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (D:/context/tex/texmf-context/tex/context/base/cont-new.mkiv) (D:/context/tex/texmf-context/tex/context/base/cont-mtx.tex)) system : cont-fil loaded (D:/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (D:/context/tex/texmf-context/tex/context/user/cont-sys.rme (D:/context/tex/texmf-context/tex/context/base/type-tmf.tex) (D:/context/tex/texmf-context/tex/context/base/type-siz.tex) (D:/context/tex/texmf-context/tex/context/base/type-otf.tex)) bodyfont : 12pt rm is loaded specials : pdftex loaded language : language en is active system : a1.top loaded (a1.top) load otf | loading: D:/context/tex/texmf-fonts/fonts/opentype/Myriad Pro/MyriadPro-Regular.otf load otf | warning: The following table(s) in the font have been ignored by FontForge load otf | warning: Ignoring 'DSIG' digital signature table load otf | warning: Warning: Mac and Windows entries in the 'name' table differ for the Fullname string in the language English (US) Mac String: Myriad Pro Windows String: MyriadPro-Regular load otf | warning: The glyph named mu is mapped to U+00B5. But its name indicates it should be mapped to U+03BC. load otf | enhance: patch bugs load otf | enhance: merge cid fonts load otf | enhance: prepare unicode load otf | 11 glyph are reused: space hyphen Tcommaaccent tcommaaccent macron Omega fraction periodcentered Delta Scedilla scedilla load otf | enhance: cleanup ttf tables load otf | enhance: compact glyphs load otf | enhance: reverse coverage load otf | enhance: enrich with features load otf | enhance: registering tlig feature load otf | enhance: registering trep feature load otf | enhance: reorganize kerns load otf | replacing 'kerns' tables by 'mykerns' tables load otf | removing global 'kern' table load otf | adding kernclass pp_l_1_k_1 with 72 times 62 pairs ! LuaTeX error ...text/tex/texmf-context/tex/context/base/font-otf.lua:828: attempt to index local 'glyph' (a nil value) stack traceback: ...text/tex/texmf-context/tex/context/base/font-otf.lua:828: in function 'enhancer' ...text/tex/texmf-context/tex/context/base/font-otf.lua:300: in function 'enhance' ...text/tex/texmf-context/tex/context/base/font-otf.lua:350: in function 'load' ...text/tex/texmf-context/tex/context/base/font-otf.lua:1113: in function 'otf_to_tfm' ...text/tex/texmf-context/tex/context/base/font-otf.lua:1252: in function 'read_from_open_type' ...text/tex/texmf-context/tex/context/base/font-def.lua:352: in function <...text/tex/texmf-context/tex/context/base/font-def.lua:334> (tail call): ? ...text/tex/texmf-context/tex/context/base/font-def.lua:279: in function 'read' ...text/tex/texmf-context/tex/context/base/font-def.lua:661: in function 'read' ...text/tex/texmf-context/tex/context/base/font-def.lua:767: in function 'command_2' <main ctx instance>:1: in main chunk. \lowleveldefinefont ...s ", "\@@fontfallbacks " )} \edef \somefontspec {at \s... \xxdododefinefont ...efont {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...me \fontclass #2#3#4#5\endcsname \tryingfontfalse \fi <inserted text> ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \iftryingfont \... <argument> \getvalue {\@style@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.20 \setupbodyfont[myfont,ss, 12pt] ? Hope this helps debugging. Yue Wang
sorry for the noise, after switching to experimental, the problem is solved.
On Fri, Jan 30, 2009 at 11:30 AM, Yue Wang
Hi, Myriad Pro is not working in recent version of ConTeXt (the same source works well in last release). Here is the code: \starttypescript[all][myfont][name] \definefontsynonym[Myriad][MyriadPro-Regular] \definefontsynonym[MyriadBold][MyriadPro-Bold] \definefontsynonym[MyriadItalic][MyriadPro-It] \definefontsynonym[MyriadBoldItalic][MyriadPro-BoldIt] \stoptypescript
\starttypescript[sans][myfont][name] \definefontsynonym[Sans][Myriad] \definefontsynonym[SansBold][MyriadBold] \definefontsynonym[SansItalic][MyriadItalic] \definefontsynonym[SansBoldItalic][MyriadBoldItalic] \definefontsynonym[SansSlanted][MyriadItalic] \definefontsynonym[SansBoldSlanted][MyriadBoldItalic] \definefontsynonym[SansCaps][Myriad] \stoptypescript
\definetypeface [myfont] [ss] [sans] [myfont] [default] \usetypescript[myfont] \setupbodyfont[myfont,ss, 12pt] \starttext \input zapf \stoptext
Here is the log:
This is luaTeX, Version snapshot-0.31.3-2008122922 (a1.tex
ConTeXt ver: 2009.01.18 14:39 MKIV fmt: 2009.1.30 int: english/english
system : cont-new loaded (D:/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (D:/context/tex/texmf-context/tex/context/base/cont-new.mkiv) (D:/context/tex/texmf-context/tex/context/base/cont-mtx.tex)) system : cont-fil loaded (D:/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (D:/context/tex/texmf-context/tex/context/user/cont-sys.rme (D:/context/tex/texmf-context/tex/context/base/type-tmf.tex) (D:/context/tex/texmf-context/tex/context/base/type-siz.tex) (D:/context/tex/texmf-context/tex/context/base/type-otf.tex)) bodyfont : 12pt rm is loaded specials : pdftex loaded language : language en is active system : a1.top loaded (a1.top) load otf | loading: D:/context/tex/texmf-fonts/fonts/opentype/Myriad Pro/MyriadPro-Regular.otf load otf | warning: The following table(s) in the font have been ignored by FontForge load otf | warning: Ignoring 'DSIG' digital signature table load otf | warning: Warning: Mac and Windows entries in the 'name' table differ for the Fullname string in the language English (US) Mac String: Myriad Pro Windows String: MyriadPro-Regular load otf | warning: The glyph named mu is mapped to U+00B5. But its name indicates it should be mapped to U+03BC. load otf | enhance: patch bugs load otf | enhance: merge cid fonts load otf | enhance: prepare unicode load otf | 11 glyph are reused: space hyphen Tcommaaccent tcommaaccent macron Omega fraction periodcentered Delta Scedilla scedilla load otf | enhance: cleanup ttf tables load otf | enhance: compact glyphs load otf | enhance: reverse coverage load otf | enhance: enrich with features load otf | enhance: registering tlig feature load otf | enhance: registering trep feature load otf | enhance: reorganize kerns load otf | replacing 'kerns' tables by 'mykerns' tables load otf | removing global 'kern' table load otf | adding kernclass pp_l_1_k_1 with 72 times 62 pairs ! LuaTeX error ...text/tex/texmf-context/tex/context/base/font-otf.lua:828: attempt to index local 'glyph' (a nil value) stack traceback: ...text/tex/texmf-context/tex/context/base/font-otf.lua:828: in function 'enhancer' ...text/tex/texmf-context/tex/context/base/font-otf.lua:300: in function 'enhance' ...text/tex/texmf-context/tex/context/base/font-otf.lua:350: in function 'load' ...text/tex/texmf-context/tex/context/base/font-otf.lua:1113: in function 'otf_to_tfm' ...text/tex/texmf-context/tex/context/base/font-otf.lua:1252: in function 'read_from_open_type' ...text/tex/texmf-context/tex/context/base/font-def.lua:352: in function <...text/tex/texmf-context/tex/context/base/font-def.lua:334> (tail call): ? ...text/tex/texmf-context/tex/context/base/font-def.lua:279: in function 'read' ...text/tex/texmf-context/tex/context/base/font-def.lua:661: in function 'read' ...text/tex/texmf-context/tex/context/base/font-def.lua:767: in function 'command_2' <main ctx instance>:1: in main chunk. \lowleveldefinefont ...s ", "\@@fontfallbacks " )} \edef \somefontspec {at \s... \xxdododefinefont ...efont {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...me \fontclass #2#3#4#5\endcsname \tryingfontfalse \fi <inserted text> ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \iftryingfont \... <argument> \getvalue {\@style@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.20 \setupbodyfont[myfont,ss, 12pt]
?
Hope this helps debugging.
Yue Wang
Hi, Hans
On Fri, Jan 30, 2009 at 11:53 AM, Yue Wang
sorry for the noise, after switching to experimental, the problem is solved.
by the way, this used to be working in MKIV: \definefontfeature[zh][mode=node, script=hang, lang=zhs] \definefontsynonym[zhserif][AdobeSongStd-Light][features=zh] \definefont[ChineseFont][zhserif at 12pt] however, in experimental version, it will report zhserif not found. So I can only write something like: \definefont[ChineseFont][AdobeSongStd-Light*zh at 12pt] Bug or feature? btw, I can use setfontfeature, how can I unset a font feature? Also, Another experimental bug to report, the following source won't compile on experimental: \usetypescript[palatino] \setupbodyfont[palatino,rm,10pt] \usemodule[units,pictex,chemic] \starttext \chemical{SO_2} \stoptext It reports: This is luaTeX, Version snapshot-0.33.0-2009012823 (untitled-2.tex ConTeXt ver: 2009.01.29 22:33 MKIV fmt: 2009.1.30 int: english/english system : cont-new loaded (D:/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (D:/context/tex/texmf-context/tex/context/base/cont-new.mkiv) (D:/context/tex/texmf-context/tex/context/base/cont-mtx.tex)) system : cont-fil loaded (D:/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (D:/context/tex/texmf-context/tex/context/user/cont-sys.rme (D:/context/tex/texmf-context/tex/context/base/type-tmf.tex) (D:/context/tex/texmf-context/tex/context/base/type-siz.tex) (D:/context/tex/texmf-context/tex/context/base/type-otf.tex)) bodyfont : 12pt is loaded bodyfont : style is not defined specials : pdftex loaded language : language en is active system : untitled-2.top loaded (untitled-2.top) bodyfont : style mm (mm) defined system : module units loaded (D:/context/tex/texmf-context/tex/context/base/m-units.tex check : unit Angstrom replaces a macro, use CAPITALS! ) system : module pictex loaded (D:/context/tex/texmf-context/tex/context/base/m-pictex.tex (D:/context/tex/texmf-context/tex/context/base/thrd-pic.tex)) system : module chemic loaded (D:/context/tex/texmf-context/tex/context/base/m-chemic.tex system : module pictex (line 21) already loaded (D:/context/tex/texmf-context/tex/context/base/ppchtex.tex ppchtex : using PiCTeX and MetaPost )) systems : begin file untitled-2 at line 6 ! Font \*palatino10ptmmmrrm* has only 7 fontdimen parameters. <to be read again> \relax \dosetsubscript ... #1\string #2}{\the #1#2\relax }#1#2=\dimen 0\relax \dodosetsubscript ...bscript {#1}{\textfont 2}{#2} \dosetsubscript {#1}{\scri... \setsubscripts ...setsubscript \mathsubnormal {.7} \dodosetsubscript \mathsub... <argument> \dosetsubscripts $\@@dochemicalstyle {\@@localchemicalstyle \stru... \chemicalinnerclip #1->{\setbox 0=\hbox {#1 }\ht 0\ht \strutbox \dp 0\dp \str... ... l.7 \chemical{SO_2} ? Yue Wang
participants (1)
-
Yue Wang