[XeTeX] Fontspec: Switching off a feature

Florian Grammel grammel at gmx.net
Mon Mar 1 13:26:57 CET 2010


Thanks all for your suggestions!

For some reason though, Khaled's approach doesn't seem to work: The \textnohist-command within \texthist doesn't seem to have any effect:

> \documentclass[12pt]{article}
> 
> \usepackage{fontspec}
> \setromanfont{Junicode}
> 
> \DeclareRobustCommand{\texthist}[1]{{\addfontfeature{Ligatures=Historical}#1}}
> \DeclareRobustCommand{\textnohist}[1]{{\addfontfeature{Ligatures=NoHistorical}#1}}
> 
> \begin{document}
> 
> oo
> \texthist{
> oo
> \textnohist{
> oo}
> oo}
> 
> \end{document}  

produces


-------------- next part --------------
A non-text attachment was scrubbed...
Name: texshop_image.pdf
Type: application/pdf
Size: 4688 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20100301/8be74286/attachment.pdf>
-------------- next part --------------

while Ross's font-families give the expected

-------------- next part --------------
A non-text attachment was scrubbed...
Name: texshop_image.pdf
Type: application/pdf
Size: 4702 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20100301/8be74286/attachment-0001.pdf>
-------------- next part --------------

I'm wondering whether this is a bug or a feature in fonspec...

Anyway -- for the time being, I'm happy to set up different font families.

Best regards
Florian.



____________________________________________

Florian Grammel

Gentofte, Denmark





More information about the XeTeX mailing list