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

Herbert Schulz herbs at wideopenwest.com
Sun Jan 31 08:49:52 EST 2016


> On Jan 31, 2016, at 3:15 AM, jfbu <jfbu at free.fr> wrote:
> 
> 
> 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

Howdy,

Hmmm... I wonder when this changed. At one time it certainly wasn't the default behavior.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)









More information about the MacOSX-TeX mailing list