Error when using external fonts
Hi. Consider small example: <example file="sample1.tex"> \usetypescriptfile[type-dejavu] \usetypescript[dejavu] %\usetypescript[cambria] \setupbodyfont[dejavu,12pt] %\setupbodyfont[cambria,12pt] \starttext This is default sample text. Текст для пробы. \stoptext </example> I run context from context-minimals but get error: ...skipped... !load otf : loading: /usr/share/fonts/TTF/DejaVuSerif.ttf (hash: dejavuserif) !load otf : file size: 328908 !load otf : enhancing ... ! LuaTeX error ...text/tex/texmf-context/tex/context/base/font-otf.lua:1243: attempt to get length of local 'splt' (a nil value) stack traceback: ...text/tex/texmf-context/tex/context/base/font-otf.lua:1243: in function 'enhancer' ...text/tex/texmf-context/tex/context/base/font-otf.lua:198: in function 'enhance' ...text/tex/texmf-context/tex/context/base/font-otf.lua:260: in function 'load' ...text/tex/texmf-context/tex/context/base/font-otf.lua:1565: in function 'otf_to_tfm' ...text/tex/texmf-context/tex/context/base/font-otf.lua:1781: in function 'read_from_open_type' ...text/tex/texmf-context/tex/context/base/font-def.lua:476: in function <...text/tex/texmf-context/tex/context/base/font-def.lua:456> (tail call): ? (tail call): ? ...text/tex/texmf-context/tex/context/base/font-def.lua:308: in function 'read' ...text/tex/texmf-context/tex/context/base/font-def.lua:585: in function 'read' ...text/tex/texmf-context/tex/context/base/font-ctx.lua:360: in function 'command_2' <main ctx instance>:1: in main chunk. \lowleveldefinefont ...dimexpr \textface \relax )} \edef \somefontspec {at \s... \xxdododefinefont ...efont {#4}\newfontidentifier \fi \csname \newfontidenti... \applyfontclassstrategies ...\fontsize \endcsname \else \expandafter \fontcl... \synchronizefont ...lse \applyfontclassstrategies \fi \autofontsizefalse \if... \rm ->\ifmmode \mathrm \else \normalrm \fi \doswitchstyle ...e \csname \@style@ #1\endcsname \edef \fontstyle {#1}\ifmm... ... l.5 \setupbodyfont[dejavu,12pt] ? ...skipped... (log file produced by context --nonstopmode sample1.tex is attached). Same for Cambria. When I run context from TL2009 all works fine (I got pdf file with dejavu font). --- WBR, Vladimir Lomov
participants (1)
-
Vladimir Lomov