I am trying to enable the Historical Ligatures feature in EB Garamond. The guide to the font calls this feature hlig
. However, I have no idea how to enable the feature.
I found a question that seems to be related: querying whether a font feature has been activated via a fontspec command. It mentions an \addfontfeatures
command, but when I try \addfontfeatures{hlig}
, I get an error: "The key 'fontspec/hlig' is unknown and is being ignored."
I haven't been able to find any concrete source about how I enable features. I feel like I'm missing something rather important.
Code:
\documentclass{article}
\usepackage{fontspec}
\usepackage{ebgaramond}
\addfontfeatures{Ligatures=Historic}
\begin{document}
These words should have ligatures: standard, acta, select.
\end{document}
Best Answer
The
ebgaramond
package does not currently have an option to enable the historic ligatures feature. This would be the preferred way to select the ligatures.Using
\addfontfeatures
in the preamble does not work, because it applies only to the font of the current group. So instead I place the\addfontfeatures
command inside\AtBeginDocument
, so it takes effect as soon as the document begins:This only works with Xe/LuaLaTeX. The converted versions of the fonts included in the package for pdfLaTeX do not have access to these ligatures.