[OS X TeX] OpenType fonts

Thomas A.Schmitz thomas.schmitz at uni-bonn.de
Sat Oct 15 12:50:15 CEST 2005


Can anyone on the list enlighten me where to put OpenType fonts? I  
use the fonts of the Adobe Type Classics for Learning CD with TeX,  
and I prefer to keep them in OpenType format. According to kpsewhich,  
these fonts should be in a directory /texmf/fonts/opentype:

kpsewhich --show-path=.otf
.:/Users/tas/Library/texmf/fonts/opentype//:!!/usr/local/teTeX/share/ 
texmf.local/fonts/opentype//:!!/usr/local/teTeX/share/texmf.gwtex/ 
fonts/opentype//:!!/usr/local/teTeX/share/texmf.tetex/fonts/ 
opentype//:!!/usr/local/teTeX/share/texmf/fonts/opentype//

This seems to work on the level of kpsewhich. If the fonts are put  
into texmf/fonts/opentype, they are found. But look what happens when  
I want to test them:

pdfetex testfont
This is pdfeTeX, Version 3.141592-1.30.3-2.2 (Web2C 7.5.5)
\write18 enabled.
entering extended mode
(/usr/local/teTeX/share/texmf.tetex/tex/plain/base/testfont.tex

Name of the font to test = AGaramondPro-Bold
Now type a test command (\help for help):)
*\table

*\end
[1{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/updmap/ 
pdftex.map}]</usr
/local/teTeX/share/texmf.tetex/fonts/type1/bluesky/cm/cmtt10.pfb>{/ 
Users/tas/Li
brary/texmf/fonts/enc/dvips/base/a_teuyio.enc}
Error: pdfetex (file AGaramondPro-Bold.otf): cannot open OpenType  
font file for
reading
==> Fatal error occurred, the output PDF file is not finished!

When I put the .otf-file into texmf/type1/fonts, the font is NOT  
found by kpsewhich. But the fonttest works flawlessly:

pdfetex testfont
This is pdfeTeX, Version 3.141592-1.30.3-2.2 (Web2C 7.5.5)
\write18 enabled.
entering extended mode
(/usr/local/teTeX/share/texmf.tetex/tex/plain/base/testfont.tex

Name of the font to test = AGaramondPro-Bold
Now type a test command (\help for help):)
*\table

*\end
[1{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/updmap/ 
pdftex.map}]</usr
/local/teTeX/share/texmf.tetex/fonts/type1/bluesky/cm/cmtt10.pfb>{/ 
Users/tas/Li
brary/texmf/fonts/enc/dvips/base/a_teuyio.enc}<</Users/tas/Library/ 
texmf/fonts/
type1/adobe/agaramond/AGaramondPro-Bold.otf>></usr/local/teTeX/share/ 
texmf.tete
x/fonts/type1/bluesky/cm/cmti10.pfb></usr/local/teTeX/share/ 
texmf.tetex/fonts/t
ype1/bluesky/cm/cmr10.pfb></usr/local/teTeX/share/texmf.tetex/fonts/ 
type1/blues
ky/cm/cmr7.pfb>
Output written on testfont.pdf (1 page, 68422 bytes).

Can anybody enlighten me what's going on here? I thought that TeX  
relied on kpsewhich to find files. Why does it find the .otf in  
scenario 1, but not in 1? I'm puzzled.

Best

Thomas

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list