[XeTeX] fontspec loading the wrong font?

Ulrike Fischer news3 at nililand.de
Fri Dec 16 10:28:04 CET 2011


Am Fri, 16 Dec 2011 05:43:18 +0800 schrieb Daniel Greenhoe:

> I have run into a very strange problem when using fontspec and trying
> to test a new experimental version of GNU FreeSerif. In particular,
> suppose I try labeling the old FreeSerif as \fntFreeSerif and the new
> experimental FreeSerif as \fntFreeSerifx like this:
[...]

> Then XeLaTeX seems to get confused and does not seem to find the new
> \fntFreeSerifx font, but is maybe using \fntFreeSerif or another
> version of FreeSerif, perhaps one in my Texlive setup.
> 
> In the log file, both fonts are assigned the same label FreeSerif(0):

> But if I comment out any *one* (or all four) of the shape directive
> lines like this

> then the problem goes away, and the two fonts are given different labels:

> Is this something I am doing wrong, a fontspec bug, or a problem with
> FreeSerif and variants?

I don't have the time to setup a test case but for me it sounds like
a fontspec bug - perhaps triggered by some xetex bug (xetex doesn't
like it if two fonts with the same name are in a system). 


-- 
Ulrike Fischer 



More information about the XeTeX mailing list