Hi Lutz, the tfm's and map file I used in my typescript are part of the lucida package from TUG. Wolfgang Am 23.04.2009 um 11:51 schrieb Lutz Haseloff:
Thanks Wolfgang,
but I got following error: define font | font with name hlcrim is not found math virtual | loading font lucidamath subfont 2 with name hlcrim at 458752 is skipped, not found define font | font with name hlcry is not found math virtual | loading font lucidamath subfont 3 with name hlcry at 458752 is skipped, not found define font | font with name hlcrv is not found math virtual | loading font lucidamath subfont 4 with name hlcrv at 458752 is skipped, not found ! LuaTeX error ...tminimal/texmf-context/tex/context/base/math- vfu.lua:85: attempt to index field '?' (a nil value) stack traceback: ...tminimal/texmf-context/tex/context/base/math-vfu.lua:85: in function 'arrow' ...tminimal/texmf-context/tex/context/base/math-vfu.lua:222: in function 'alas' ...tminimal/texmf-context/tex/context/base/math-vfu.lua:498: in function <...tminimal/texmf-context/tex/context/base/math-vfu.lua:243> (tail call): ? (tail call): ? ...tminimal/texmf-context/tex/context/base/font-def.lua:506: in function 'read' ...tminimal/texmf-context/tex/context/base/font-ctx.lua:288: in function 'command_2' <main ctx instance>:1: in main chunk. \lowleveldefinefont ...dimexpr \textface \relax )} \edef \somefontspec {at \s... \xxdododefinefont ...efont {#4}\newfontidentifier \let \localrelativefontsiz... \dodosetmathfamily ...family \fontsize \endcsname \else \ifcsname \fontclass... \dosetmathfamily ...athfamily \scriptscriptfont #1 \let \currentmathsize \plu... \synchronizemath ...athfonts \the \mathstrategies \fi <inserted text> ...chronizefonts \synchronizemath \synchronizefont \fi \spac... ... l.3 \setupbodyfont[lucida]
Installing the tfm and vf fontfiles from CTAN did not help.
after adapting your script to:
\startluacode mathematics.make_font ( "lucida-math", { { name = "lbr.afm", features = "virtualmath", main = true }, { name = "lbmi.afm", vector = "traditional-mi", skewchar=0x7F }, { name = "lbms.afm", vector = "traditional-sy", skewchar=0x30, parameters = true }, { name = "lbme.afm", vector = "traditional-ex", extension = true }, { name = "msam10", vector = "traditional-ma" }, { name = "msbm10", vector = "traditional-mb" }, } ) \stopluacode
ConTeXt found the fonts but gaves:
! LuaTeX error ...tminimal/texmf-context/tex/context/base/math- vfu.lua:464: attempt to index local 'fci' (a nil value) stack traceback: ...tminimal/texmf-context/tex/context/base/math-vfu.lua:464: in function <...tminimal/texmf-context/tex/context/base/math-vfu.lua:243> (tail call): ? (tail call): ? ...tminimal/texmf-context/tex/context/base/font-def.lua:506: in function 'read' ...tminimal/texmf-context/tex/context/base/font-ctx.lua:288: in function 'command_2' <main ctx instance>:1: in main chunk. \lowleveldefinefont ...dimexpr \textface \relax )} \edef \somefontspec {at \s... \xxdododefinefont ...efont {#4}\newfontidentifier \let \localrelativefontsiz... \dodosetmathfamily ...family \fontsize \endcsname \else \ifcsname \fontclass... \dosetmathfamily ...athfamily \scriptscriptfont #1 \let \currentmathsize \plu... \synchronizemath ...athfonts \the \mathstrategies \fi <inserted text> ...chronizefonts \synchronizemath \synchronizefont \fi \spac... ... l.3 \setupbodyfont[lucida]
No success so far...
Greetings Lutz