[latex3-commits] [git/LaTeX3-latex3-fontspec] variable: Add Slant axis (913d5a2)
Marcel Fabian Krüger
tex at 2krueger.de
Fri May 27 22:23:40 CEST 2022
Repository : https://github.com/latex3/fontspec
On branch : variable
Link : https://github.com/latex3/fontspec/commit/913d5a2e8736e871f85440fe0bf738381f25403f
>---------------------------------------------------------------
commit 913d5a2e8736e871f85440fe0bf738381f25403f
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Fri May 27 22:23:40 2022 +0200
Add Slant axis
>---------------------------------------------------------------
913d5a2e8736e871f85440fe0bf738381f25403f
fontspec-code-keyval.dtx | 1 +
fontspec-doc-featset.tex | 15 +++++++++++++++
2 files changed, 16 insertions(+)
diff --git a/fontspec-code-keyval.dtx b/fontspec-code-keyval.dtx
index 9b51b6f..dc5b108 100644
--- a/fontspec-code-keyval.dtx
+++ b/fontspec-code-keyval.dtx
@@ -774,6 +774,7 @@
}
%</XE>
%<LU>\@@_define_opentype_variation_axis:nn {Width} {wdth}
+\@@_define_opentype_variation_axis:nn {Slant} {slnt}
\@@_keys_define_code:nnn {fontspec} {OpticalSize}
%<*XE>
{
diff --git a/fontspec-doc-featset.tex b/fontspec-doc-featset.tex
index 202b171..1a8f2ed 100644
--- a/fontspec-doc-featset.tex
+++ b/fontspec-doc-featset.tex
@@ -657,6 +657,21 @@ where the value is a percentage of normal width.
Condensed \\
\end{Verbatim}
+\subsection{Slant} \label{sec:variable-slant}
+Also fonts with a slant axis can be controlled with the \feat{Slant} feature.
+In a standard compliant font the value should specify the clockwise angle in degree
+the glyphs are slanted. Therefore for a typical forward leaning slanted font, a
+negative value should be passed.
+
+Many fonts use this feature in non-standard ways, so you might have to experiment
+a bit with the value.
+\begin{Verbatim}
+ \fontspec{Roboto Flex}[Slant=0]
+ Upright \\
+ \fontspec{Roboto Flex}[Slant=-5]
+ Slanted \\
+\end{Verbatim}
+
\subsection{Other axes} \label{sec:variable-raw}
For OpenType variable fonts, additional axis values can be specified
if the four letter tag of these axes is known.
More information about the latex3-commits
mailing list.