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

jfbu jfbu at free.fr
Sun Jan 31 04:15:20 EST 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




More information about the MacOSX-TeX mailing list