[OS X TeX] comicsans

Bruno Voisin bvoisin at mac.com
Tue Sep 18 22:58:39 CEST 2007


Le 18 sept. 07 à 21:24, Andrew Miller a écrit :

> Didn't know I had the wrong directory name.

In such circumstances, a useful tool is kpsewhich. You may try either  
of (they are equivalent):

	kpsewhich -show-path=.ttf | tr : '\n'
	kpsewhich -show-path="truetype fonts" | tr : '\n'

See section 3.5.1 of /usr/local/texlive/2007/texmf/doc/kpathsea/ 
kpathsea.pdf.

Often I just look through the various texmf trees to hint at how  
things are organized, but the above is much more reliable.

On my setup the output is something like:

~/.texlive2007/texmf-config/fonts/truetype//
~/.texlive2007/texmf-var/fonts/truetype//
~/Library/texmf/fonts/truetype//
!!/usr/local/texlive/2007/texmf-config/fonts/truetype//
!!/usr/local/texlive/2007/texmf-var/fonts/truetype//
!!/usr/local/texlive/2007/texmf/fonts/truetype//
!!/usr/local/texlive/2007/../texmf-local/fonts/truetype//
!!/usr/local/texlive/2007/texmf-dist/fonts/truetype//
/please/set/osfontdir/in/the/environment//

BTW, I wonder what we are supposed to make of, in /usr/local/texlive/ 
2007/texmf/web2c/texmf.cnf:

% OSFONTDIR is to provide a convenient hook for allowing TeX to find
% fonts installed on the system (outside of TeX).  An empty default
% value would add "//" to the search paths, so we give it a dummy value.
OSFONTDIR = /please/set/osfontdir/in/the/environment

I suspect this is what causes the last line of output.

Ideally setting either of:

OSFONTDIR = /Library/Fonts
OSFONTDIR = $HOME/Library/Fonts

would avoid having to copy the fonts to a texmf tree. But I suspect  
this would be far too simple and probably wouldn't work for some  
reason (absence of extension in the filename "Comic Sans MS",  
presence of spaces, packaging in a Mac-specific format, whatever).

Bruno Voisin
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the macostex-archives mailing list