From: Vladimir Lomov <lomov.vl@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Error when using external fonts
Date: Fri, 8 Jan 2010 14:22:43 +0800 [thread overview]
Message-ID: <f5cb9d441001072222u8ade1e1uf6671fd297bab6db@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2591 bytes --]
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
[-- Attachment #2: sample1.log --]
[-- Type: text/x-log, Size: 8027 bytes --]
(sample1.tex
ConTeXt ver: 2010.01.05 16:47 MKIV fmt: 2010.1.8 int: english/english
system : cont-new loaded
(/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/cont-new.mkiv))
system : cont-fil loaded
(/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system : cont-sys.rme loaded
(/usr/local/opt/texlive/context/tex/texmf-context/tex/context/user/cont-sys.rme (/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/type-lua.tex) (/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/type-tmf.tex (/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/type-tmf.mkiv)) (/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/type-siz.tex (/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/type-siz.mkiv)) (/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/type-otf.tex (/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/type-otf.mkiv)))
system : sample1.top loaded
%
% begin of optionfile
%
% % runtime options files (command line driven)
% \unprotect
% % special commands, mostly for the ctx development team
% % feedback and basic job control
% \nonstopmode
% % handy for special styles
% \startluacode
% document = document or { }
% document.arguments={
% ["nonstopmode"]=true,
% }
% document.files={
% "sample1.tex",
% }
% \stopluacode
% % process info
% \setupsystem[inputfile=sample1.tex]
% \setupsystem[\c!n=1,\c!m=1]
% % modes
% % options (not that important)
% \startsetups *runtime:options
% \setupoutput[pdftex]
% \stopsetups
% % styles and modules
% \startsetups *runtime:modules
% \stopsetups
% % done
% \protect \endinput
%
% end of optionfile
%
(sample1.top
)
fonts : preloading latin modern fonts
bodyfont : 12pt rm is loaded
language : language en is active
(/usr/local/opt/texlive/context/tex/texmf-context/tex/context/third/typescripts/type-dejavu.tex (/usr/local/opt/texlive/context/tex/texmf-context/tex/context/third/typescripts/type-dejavu.mkiv))
!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]
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.
!math virtual : the mapping is incomplete for 'pxmath' at 7pt
systems : begin file sample1.tex at line 7
fonts : resetting map file list
{/usr/local/opt/texlive/context/tex/texmf-context/fonts/map/pdftex/context/original-empty.map}
fonts : using map file: original-base
{/usr/local/opt/texlive/context/tex/texmf-context/fonts/map/pdftex/context/original-base.map}
fonts : using map file: original-ams-base
{/usr/local/opt/texlive/context/tex/texmf-context/fonts/map/pdftex/context/original-ams-base.map}
fonts : using map file: original-ams-euler
{/usr/local/opt/texlive/context/tex/texmf-context/fonts/map/pdftex/context/original-ams-euler.map}
fonts : using map file: original-public-lm
{/usr/local/opt/texlive/context/tex/texmf-context/fonts/map/pdftex/context/original-public-lm.map}
fonts : using map file: lm-math
{/usr/local/opt/texlive/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}
fonts : using map file: lm-rm
{/usr/local/opt/texlive/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts : using map file: original-youngryu-px
{/usr/local/opt/texlive/context/tex/texmf-context/fonts/map/pdftex/context/original-youngryu-px.map}
!pages : flushing realpage 1, userpage 1, subpage 1
systems : end file sample1.tex at line 11
system : cont-err loaded
(/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/cont-err.tex
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
) )</usr/local/opt/texlive/context/tex/texmf/fonts/opentype/public/tex-gyre/texgyrepagella-regular.otf>
mkiv lua stats : used config path - /usr/local/opt/texlive/context/tex/texmf/web2c/texmf.cnf
mkiv lua stats : used cache path - /usr/local/opt/texlive/context/tex/texmf-cache
mkiv lua stats : input load time - 0.037 seconds
mkiv lua stats : stored bytecode data - 200 modules, 48 tables, 248 chunks
mkiv lua stats : node list callback tasks - 4 unique tasks, 3 created, 13 calls
mkiv lua stats : cleaned up reserved nodes - 25 nodes, 9 lists of 1408
mkiv lua stats : node memory usage - 20 glue_spec
mkiv lua stats : used backend - pdf (backend for directly generating pdf output)
mkiv lua stats : loaded patterns - en:us:pat:exc:2
mkiv lua stats : startup time - 0.474 seconds (including runtime option file processing)
mkiv lua stats : callbacks - direct: 502, indirect: 3783, total: 4285
mkiv lua stats : lxml preparation time - 0.000 seconds, 0 nodes, 4 lpath calls, 0 cached calls
mkiv lua stats : result saved in file - sample1.pdf
mkiv lua stats : loaded fonts - 40 files: lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf texgyrepagella-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm pxex.tfm pxsy.tfm pxsya.tfm pxsyb.tfm rpxmi.tfm rpxpplri.tfm rpxr.tfm
mkiv lua stats : fonts load time - 0.280 seconds
mkiv lua stats : luatex banner - this is luatex, version beta-0.50.0-2009122519
mkiv lua stats : control sequences - 30464 of 165536
mkiv lua stats : current memory usage - 49 MB (ctx: 51 MB)
mkiv lua stats : runtime - 1.406 seconds, 0 processed pages, 1 shipped pages, 0.711 pages/second
[-- Attachment #3: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
reply other threads:[~2010-01-08 6:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f5cb9d441001072222u8ade1e1uf6671fd297bab6db@mail.gmail.com \
--to=lomov.vl@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).