This is inspired by this question, where an alternate character of a font is only available via OpenType’s access all alternates (aalt) feature. My question is simply: Is it possible to access this feature in some way or even as intended with XeLaTeX?

Fontspec, which should be the obvious choice for this, does not mention this feature in its manual. This answer does not do this for reasons explained in a comment.

  • You can try adding the feature with RawFeature=+aalt – egreg Jul 14 '15 at 9:58
  • However, enabling aalt will also use small caps. – egreg Jul 14 '15 at 10:08
  • @egreg: RawFeature=+aalt seems to acivate all the first alternatives from aalt (which probably are the respective small caps in some fonts, but not always). So it gives you access to some of the characters, but not all and not on a per-character basis. – Wrzlprmft Jul 14 '15 at 10:30

You can assess glyphs by name:

\setmainfont{Linux Libertine O}
 %for comparision:
\setsansfont[RawFeature=+aalt]{Linux Libertine O}
Lessingstraße \XeTeXglyph\the\XeTeXglyphindex "germandbls.sc" \relax 

\sffamily Lessingstraße


enter image description here

The main problem is to find out the correct name (I used the font cache file created by lualatex).

  • Wonderful. By the way, you can see the glyph names in FontForge and probably any other decent font editor. – Wrzlprmft Jul 14 '15 at 15:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.