Skip to content

Commit

Permalink
Add variation axis interface
Browse files Browse the repository at this point in the history
  • Loading branch information
zauguin committed May 23, 2022
1 parent b66a05f commit ae04fc4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions fontspec-code-keyval.dtx
Expand Up @@ -760,14 +760,20 @@
% \subsubsection{Continuous font axes}
%
% \begin{macrocode}
%<*XE>
\@@_keys_define_code:nnn {fontspec} {Weight}
{
\@@_update_featstr:n{weight=#1}
}
%</XE>
%<LU>\@@_define_opentype_variation_axis:nn {Weight} {wght}
%<*XE>
\@@_keys_define_code:nnn {fontspec} {Width}
{
\@@_update_featstr:n{width=#1}
}
%</XE>
%<LU>\@@_define_opentype_variation_axis:nn {Width} {wdth}
\@@_keys_define_code:nnn {fontspec} {OpticalSize}
%<*XE>
{
Expand Down Expand Up @@ -795,6 +801,14 @@
%</LU>
% \end{macrocode}
%
% For other potentially font specific variation axes, there is a raw setter available:
% \begin{macrocode}
\@@_keys_define_code:nnn {fontspec-opentype} {RawAxis}
{
\prop_gput_from_keyval:Nn \g_@@_rawvariations_prop {#1}
}
% \end{macrocode}
%
% \subsubsection{Font transformations}
% These are to be specified to apply directly to a font shape:
% \begin{macrocode}
Expand Down

0 comments on commit ae04fc4

Please sign in to comment.