[OS X TeX] Using FontBook to help XeTeX find TeXLive/MacTeX distributed fonts

jfbu jfbu at free.fr
Sun Jan 31 10:15:20 CET 2016


Le 31 janv. 2016 à 03:07, Herbert Schulz <herbs at wideopenwest.com> a écrit :

>> 
>> \usepackage{fontspec}
>> \defaultfontfeatures{Mapping=tex-text}
>> \setromanfont{erewhon} % reads erewhon.fontspec, extension of 'Utopia' 
>> \setsansfont[Scale=MatchLowercase]{zhv} % reads zhv.fontspec in nimbus15, 'Helvetica'
>> \setmonofont[Scale=MatchLowercase]{zco} % reads zco.fontspec in nimbus15, 'Courier' Medium
>> 
>> [...]
>> 
>> Michael
> 
> [...]

> PS: I usually DON'T use \defaultfontfeatures{Mapping=tex-text} (actually, recent usage would be \defaultfontfeatures{Ligatures=TeX}) since I DON'T want my mono-spaced font to show TeX ligatures (e.g., I don't want -- to become – when using the mono-spaced font); I only give my roman and sans fonts that property.

Hi, in this context, an excerpt of the fontspec README.markdown file:

- v2.4 (2014/06/01)

[...]

      * `Ligatures=TeX` is enabled by default with `\setmainfont` and `\setsansfont`.

Jean-François


----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex



More information about the macostex-archives mailing list