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