[OS X TeX] General Font Question

Franck Pastor franck.pastor at skynet.be
Sat Mar 13 05:56:58 EST 2010


Le 13 mars 10 à 11:21, Manuel a écrit :

> Franck, I'm not sure I understand you. Is this code supposed to  
> enable you to use any font installed in the OS?

Yes, as long as they are properly installed, in one of the right  
places. (/System/Library/Fonts, /Library/Fonts, ~/Library/Fonts,  …).

>
> The example worked fine with Zapfino but not with Provence.
>

I haven't found these fonts in my OS, neither in /Library/Fonts, nor  
in ~/Library/Fonts or in /System/Library/Fonts… What are they?


> Also please excuse my ingorance: the two first lines are commented  
> out, so I don't get whether I'm supposed to use them or not.

These are very special comments, recognized by TeXShop. The first  
tells TeXShop to encode the file with UTF-8 Unicode encoding (XeLaTeX  
only accepts Unicode encoding), the second tells it to run XeLaTeX for  
typesetting. So it's better to use them.

Franck Pastor

>
> Manuel
>
>
>
> Am 13/03/2010 um 10:59 schrieb Richard J Benish:
>
>>> Le 13 mars 10 à 09:11, Richard J Benish a écrit :
>>>
>>>> So why can't LaTex work with the same ease? Why can't fonts that  
>>>> are readily available for graphics applications (and even word  
>>>> processors, etc.) be made readily available in LaTex?
>>>
>>> They are if you use XeLaTeX and its fontspec package.
>>>
>>> Try this, for example:
>>>
>>> % !TEX encoding = UTF-8 Unicode
>>> % !TEX TS-program = xelatex
>>> \documentclass{article}
>>> \usepackage{xltxtra}% loads also fontspec
>>> \setmainfont{Zapfino}
>>> \begin{document}
>>> Zapfino is wonderful!
>>> \end{document}
>>>
>>> In argument of fontspec's \setmainfont command, you only have to  
>>> put the name of the font available in your Mac OS system.
>>>
>>>> I'd guess LaTex would have many more users if font loading were  
>>>> not so daunting. I've never even tried loading a new font for  
>>>> LaTex because I don't understand how, and the many challenging  
>>>> experiences communicated on this list are a big disincentive to  
>>>> bother.
>>>
>>>
>>> Even with pdfLaTeX, a \usepackage{} is often sufficient. For  
>>> example,
>>>
>>> \usepackage{fourier}
>>>
>>> loads the beautiful Utopia-Fourier text/math fonts.
>>>
>>> See the LaTeX font catalogue for a comprehensive list of the fonts  
>>> available with LaTeX and how to use them:
>>>
>>> http://www.tug.dk/FontCatalogue/




More information about the MacOSX-TeX mailing list