[NTG-context] Using Postscript Type 1 fonts in ConTeXt/XeTeX?

Roland ntg-context at rolandsiebelink.com
Tue Jan 22 07:44:02 CET 2008


Oh well let's try again in that case ;-)

I ran the first test script and it gives the same error (see log 1).
Then I went back to Wolfgang's recommended script and replaced the
second typescript block with your suggested lines (the bolditalic font
is called Eco302BoldItalic, by the way). This produced the errors as
enclosed in log 2...

Thanks again
Roland


====== LOG 1 =========

TeXExec | processing document 'hello.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file hello.top
TeXExec | using randomseed 166
TeXExec | tex engine: xetex
TeXExec | tex format: cont-en
This is XeTeXk, Version 3.141592-2.2-0.997 (Web2C 7.5.6)
 \write18 enabled.
 file:line:error style messages enabled.
entering extended mode
(./hello.tex

ConTeXt  ver: 2008.01.16 13:49 MKII  fmt: 2008.1.21  int: english/english

language        : language en is active
system          : cont-new loaded
(/usr/local/context/tex/texmf-context/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkii)
(/usr/local/context/tex/texmf-context/tex/context/base/cont-mtx.tex))
system          : cont-old loaded
(/usr/local/context/tex/texmf-context/tex/context/base/cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(/usr/local/context/tex/texmf-context/tex/context/base/cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys.rme loaded
(/usr/local/context/tex/texmf-context/tex/context/user/cont-sys.rme
(/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex))
bodyfont        : 12pt rm is loaded
language        : patterns nl->ec:ec->1->2:3 fr->ec:ec->2->2:3 de->ec:ec->3->2:
3 it->ec:ec->4->2:3 pt->ec:ec->5->2:3 hr->ec:ec->6->2:3 pl->ec:ec->7->2:3 cz->e
c:ec->8->2:3 sk->ec:ec->9->2:3 sl->ec:ec->10->2:3 ru->ec:ec->12->2:3 en->ec:ec-
>13->2:3 uk->ec:ec->14->2:3 us->ec:ec->15->2:3 agr->ec:ec->16->2:3 da->ec:ec->1
7->2:3 sv->ec:ec->18->2:3 af->ec:ec->19->2:3 no->ec:ec->20->2:3 deo->ec:ec->21-
>2:3 es->ec:ec->25->2:3 ca->ec:ec->26->2:3 la->ec:ec->27->2:3 ro->ec:ec->28->2:
3 tr->ec:ec->29->2:3 fi->ec:ec->31->2:3 hu->ec:ec->32->2:3 loaded
specials        : tex,postscript,rokicki loaded
system          : hello.top loaded
(./hello.top
specials        : loading definition file dpx
(/usr/local/context/tex/texmf-context/tex/context/base/spec-dpx.tex
specials        : loading definition file fdf
(/usr/local/context/tex/texmf-context/tex/context/base/spec-fdf.tex
(/usr/local/context/tex/texmf-context/tex/context/base/spec-fdf.mkii))
specials        : fdf loaded
)
specials        : fdf,dpx loaded
specials        : loading definition file xet
(/usr/local/context/tex/texmf-context/tex/context/base/spec-xet.tex)
specials        : fdf,dpx loaded
) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo)
(./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo)
(./hello.tuo) (./hello.tuo)
systems         : begin file hello at line 12
fonts           : resetting map file list
fonts           : using map file: original-base
fonts           : using map file: lm-math
fonts           : using map file: lm-rm
fonts           : using map file: texnansi-base
fonts           : using map file: ec-base
fonts           : using map file: qx-base
fonts           : using map file: t5-base
fonts           : using map file: 8r-base
fonts           : using map file: original-ams-base
fonts           : using map file: original-ams-euler
fonts           : using map file: original-public-lm
(/usr/local/context/tex/texmf-context/tex/context/base/sort-def.tex
(/usr/local/context/tex/texmf-context/tex/context/base/sort-def.mkii))
(/usr/local/context/tex/texmf-context/tex/context/base/sort-lan.tex
loading         : Context Sorting Macros (languages)
(/usr/local/context/tex/texmf-context/tex/context/base/sort-lan.mkii)) [1.1]
systems         : end file hello at line 18
system          : cont-err loaded
(/usr/local/context/tex/texmf-context/tex/context/base/cont-err.tex
systems         : no file 'cont-sys.tex', using 'cont-sys.rme' instead
stdin -> hello.pdf

[1

** ERROR ** Invalid font: -1 (1)



Output file removed.

) )
(see the transcript file for additional information)
Output written on hello.pdf (1 page).
Transcript written on hello.log.
TeXUtil | parsing file hello.tui
TeXUtil | shortcuts : 169
TeXUtil | expansions: 308
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 1
TeXUtil | temporary files: 0
TeXUtil | commands: 21
TeXUtil | programs: 0
TeXUtil | tuo file saved
TeXExec | runtime: 5.324055

===== END OF LOG 1 =====


===== LOG 2 =====
TeXExec | processing document 'hello-r642.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file hello-r642.top
TeXExec | using randomseed 718
TeXExec | tex engine: xetex
TeXExec | tex format: cont-en
This is XeTeXk, Version 3.141592-2.2-0.997 (Web2C 7.5.6)
 \write18 enabled.
 file:line:error style messages enabled.
entering extended mode
(./hello-r642.tex

ConTeXt  ver: 2008.01.16 13:49 MKII  fmt: 2008.1.21  int: english/english

language        : language en is active
system          : cont-new loaded
(/usr/local/context/tex/texmf-context/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkii)
(/usr/local/context/tex/texmf-context/tex/context/base/cont-mtx.tex))
system          : cont-old loaded
(/usr/local/context/tex/texmf-context/tex/context/base/cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(/usr/local/context/tex/texmf-context/tex/context/base/cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys.rme loaded
(/usr/local/context/tex/texmf-context/tex/context/user/cont-sys.rme
(/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex))
bodyfont        : 12pt rm is loaded
language        : patterns nl->ec:ec->1->2:3 fr->ec:ec->2->2:3 de->ec:ec->3->2:
3 it->ec:ec->4->2:3 pt->ec:ec->5->2:3 hr->ec:ec->6->2:3 pl->ec:ec->7->2:3 cz->e
c:ec->8->2:3 sk->ec:ec->9->2:3 sl->ec:ec->10->2:3 ru->ec:ec->12->2:3 en->ec:ec-
>13->2:3 uk->ec:ec->14->2:3 us->ec:ec->15->2:3 agr->ec:ec->16->2:3 da->ec:ec->1
7->2:3 sv->ec:ec->18->2:3 af->ec:ec->19->2:3 no->ec:ec->20->2:3 deo->ec:ec->21-
>2:3 es->ec:ec->25->2:3 ca->ec:ec->26->2:3 la->ec:ec->27->2:3 ro->ec:ec->28->2:
3 tr->ec:ec->29->2:3 fi->ec:ec->31->2:3 hu->ec:ec->32->2:3 loaded
specials        : tex,postscript,rokicki loaded
system          : hello-r642.top loaded
(./hello-r642.top
specials        : loading definition file dpx
(/usr/local/context/tex/texmf-context/tex/context/base/spec-dpx.tex
specials        : loading definition file fdf
(/usr/local/context/tex/texmf-context/tex/context/base/spec-fdf.tex
(/usr/local/context/tex/texmf-context/tex/context/base/spec-fdf.mkii))
specials        : fdf loaded
)
specials        : fdf,dpx loaded
specials        : loading definition file xet
(/usr/local/context/tex/texmf-context/tex/context/base/spec-xet.tex)
specials        : fdf,dpx loaded
) (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex)
./hello-r642.tex:31: Font \*eco12ptrmtfrm*:=Eco-Regular at 12.0pt not loadable:
 Metric (TFM) file or installed font not found.
<to be read again>
                   \relax
\xxdododefinefont ...tspec {#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.31 \setupbodyfont[eco]

No pages of output.
Transcript written on hello-r642.log.
TeXUtil | parsing file hello-r642.tui
TeXUtil | shortcuts : 0
TeXUtil | expansions: 0
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 0
TeXUtil | temporary files: 0
TeXUtil | commands: 3
TeXUtil | programs: 0
TeXUtil | tuo file saved
TeXExec | TeX run 2
TeXExec | writing option file hello-r642.top
TeXExec | using randomseed 718
TeXExec | tex engine: xetex
TeXExec | tex format: cont-en
This is XeTeXk, Version 3.141592-2.2-0.997 (Web2C 7.5.6)
 \write18 enabled.
 file:line:error style messages enabled.
entering extended mode
(./hello-r642.tex

ConTeXt  ver: 2008.01.16 13:49 MKII  fmt: 2008.1.21  int: english/english

language        : language en is active
system          : cont-new loaded
(/usr/local/context/tex/texmf-context/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkii)
(/usr/local/context/tex/texmf-context/tex/context/base/cont-mtx.tex))
system          : cont-old loaded
(/usr/local/context/tex/texmf-context/tex/context/base/cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(/usr/local/context/tex/texmf-context/tex/context/base/cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys.rme loaded
(/usr/local/context/tex/texmf-context/tex/context/user/cont-sys.rme
(/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex))
bodyfont        : 12pt rm is loaded
language        : patterns nl->ec:ec->1->2:3 fr->ec:ec->2->2:3 de->ec:ec->3->2:
3 it->ec:ec->4->2:3 pt->ec:ec->5->2:3 hr->ec:ec->6->2:3 pl->ec:ec->7->2:3 cz->e
c:ec->8->2:3 sk->ec:ec->9->2:3 sl->ec:ec->10->2:3 ru->ec:ec->12->2:3 en->ec:ec-
>13->2:3 uk->ec:ec->14->2:3 us->ec:ec->15->2:3 agr->ec:ec->16->2:3 da->ec:ec->1
7->2:3 sv->ec:ec->18->2:3 af->ec:ec->19->2:3 no->ec:ec->20->2:3 deo->ec:ec->21-
>2:3 es->ec:ec->25->2:3 ca->ec:ec->26->2:3 la->ec:ec->27->2:3 ro->ec:ec->28->2:
3 tr->ec:ec->29->2:3 fi->ec:ec->31->2:3 hu->ec:ec->32->2:3 loaded
specials        : tex,postscript,rokicki loaded
system          : hello-r642.top loaded
(./hello-r642.top
specials        : loading definition file dpx
(/usr/local/context/tex/texmf-context/tex/context/base/spec-dpx.tex
specials        : loading definition file fdf
(/usr/local/context/tex/texmf-context/tex/context/base/spec-fdf.tex
(/usr/local/context/tex/texmf-context/tex/context/base/spec-fdf.mkii))
specials        : fdf loaded
)
specials        : fdf,dpx loaded
specials        : loading definition file xet
(/usr/local/context/tex/texmf-context/tex/context/base/spec-xet.tex)
specials        : fdf,dpx loaded
) (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex)
(/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex)
./hello-r642.tex:31: Font \*eco12ptrmtfrm*:=Eco-Regular at 12.0pt not loadable:
 Metric (TFM) file or installed font not found.
<to be read again>
                   \relax
\xxdododefinefont ...tspec {#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.31 \setupbodyfont[eco]

No pages of output.
Transcript written on hello-r642.log.
TeXUtil | parsing file hello-r642.tui
TeXUtil | shortcuts : 0
TeXUtil | expansions: 0
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 0
TeXUtil | temporary files: 0
TeXUtil | commands: 3
TeXUtil | programs: 0
TeXUtil | tuo file saved
TeXExec | runtime: 28.552661

===== END OF LOG 2 =====


More information about the ntg-context mailing list