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?

1
  • 1
    Both of the other answers to the linked question show how to enable specific stylistic sets. Mar 25, 2021 at 17:06

1 Answer 1

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

2
  • 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, 2021 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. Mar 25, 2021 at 17:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .