[XeTeX] Fontspec: Switching off a feature

Jonathan Kew jfkthame at googlemail.com
Mon Mar 1 15:05:27 CET 2010


On 1 Mar 2010, at 13:35, Ulrike Fischer wrote:

> At second \addfontfeature adds the new tags to the right, at the end
> of the list, but as the following example shows in general the first
> tag wins. 

I don't recall offhand, but your examples are not quite correct and so they're not a valid test of the behavior:

> 
> So my advice is: don't nest \addfontfeature and always surround them
> with braces to limit them.
> 
> \documentclass{article}
> \usepackage{fontspec}
> \setmainfont{Latin Modern Roman}
> 
> \begin{document}
> \font\test="Junicode:+hlig"
> \test oo
> 
> \font\test="Junicode:-hlig"
> \test oo, 
> 
> \font\test="Junicode:+hlig-hlig"
> \test oo, %like +hlig

You need a separator (comma, semicolon) between features, so that should be

  \font\test="Junicode:+hlig,-hlig"

etc. See what happens then.

JK




More information about the XeTeX mailing list