Using ebgaramond package, is there any way to get an oldstyle figure 1 that looks like a shorter 1 rather than a shorter I?
Asked
Active
Viewed 538 times
3
totera
- 337
1 Answers
5
The ebgaramond package provides no means for using the glyph you want, but if you use xetex or luatex, you don’t need the package:
\documentclass[12pt]{article}
\usepackage{fontspec}
\setmainfont{EB Garamond}[UprightFeatures={CharacterVariant=11}]
\begin{document}
12345
\end{document}
This variant is available only in the roman, not the italic.
Note that this solution works for the EB Garamond from Georg Duffner; TeX Live contains only the modified fonts from Octavio Pardo. The latter require that you specify Numbers=OldStyle and, although they contain the glyph you want (one.01), they provide no feature for using it. With LuaLaTeX, you can create a feature on the fly for this modified EB Garamond:
\documentclass[12pt]{article}
\usepackage{fontspec}
\directlua{
fonts.handlers.otf.addfeature{
name = "wxyz",
type = "alternate",
data = {
["one.osf"] = "one.01",
["one.tosf"] = "one.tosf01",
},
}
}
\setmainfont{EB Garamond}[
Numbers={OldStyle,Proportional},
RawFeature=+wxyz]
\begin{document}
12345
\addfontfeature{Numbers=Tabular}12345
\end{document}
Thérèse
- 12,679
-
-
@ReRunner I assume you’re referring to Georg Duffner’s fonts, in which case the first part of my answer works. – Thérèse Dec 09 '20 at 13:39
-
@Thérèse, Is there a way to get bold and/or bold-italic figure of it under XeLaTeX? – settimed Aug 10 '21 at 14:14

1s do look like a small capsI. – Bernard Mar 08 '20 at 16:12garamondxuses such a modified oldstyle 1. – totera Mar 09 '20 at 00:53garamondxoldstyle 1 is ugly. – user574859 Feb 07 '23 at 18:59