1

How can I set specific stylistic sets of a font (ss01, ss03, but not ss02) with fontspec and LuaLaTeX? For instance, with the FiraCode font.

This question is not a duplicate of How to replace a letter?, and the answer https://tex.stackexchange.com/a/447692/213962 targets a different problem: I just need to enable some features, not find and replace their symbols with another.

How can one achieve the same with XeLaTeX?

Polizi8
  • 311
  • 1
  • 13

1 Answers1

1

Well a fast search in the documentation of fontspec for stylistic lead to the following option:

\documentclass{book}
\usepackage{fontspec}
\begin{document}

\fontspec{FiraCode}

&, @, 0.

\fontspec{FiraCode}[StylisticSet={1,3}]

&, @, 0. \end{document}

enter image description here

Ulrike Fischer
  • 327,261
  • Oh so I had to omit the "ss0" part, as subsection 3.1.13 says. "Numbers=OldStyle,SlashedZero" enables "onum" and "zero" (dotted zero) – Polizi8 Mar 25 '21 at 17:23
  • In my version of the document (which should be the newest one) 3.1.13 Stylistic Set variations — ssNN describes the syntax quite clear and well. – Ulrike Fischer Mar 25 '21 at 17:29