[XeTeX] prioritizing OTF fonts

Herbert Schulz herbs at wideopenwest.com
Thu Jul 28 13:28:27 CEST 2016


Howdy,

You can load the font using file names rather than font names. It's a bit more complicated but certainly doable. That resolves any ambiguity the way you wish. 

Good Luck,
Herb Schulz


> On Jul 27, 2016, at 5:47 PM, Karljürgen Feuerherm <kfeuerherm at kfeuerherm.ca> wrote:
> 
> I can answer part of this… It loads TTF just fine, as I’ve a font of my own design that I’ve used with no problems. (Just retested now to be sure nothing has changed.)
> 
> I don’t know about part two :)
> 
> Karljürgen
> 
>> On Jul 27, 2016, at 16:30, maxwell <maxwell at umiacs.umd.edu> wrote:
>> 
>> Does fontspec load *only* OpenType fonts?
>> 
>> The intro to the fontspec package documentation says
>>   The fontspec package allows users of either XETEX or
>>   LuaTEX to load OpenType fonts in a LATEX document.
>> Does that mean it doesn't load TrueType etc. fonts, even if there are no OpenType versions of those fonts?
>> 
>> Some of the things I've read on-line (like http://tex.stackexchange.com/questions/241927/problem-using-ttf-fonts-with-xelatex) seem to imply that fontspec loads ttf fonts just fine.  In which case I'll have a different question: how to ensure that it prioritizes OTF fonts over TTF fonts fc-list finds two such fonts.
>> -- 
>>    Mike Maxwell




More information about the XeTeX mailing list