diff options
Diffstat (limited to 'macros/unicodetex/latex/fontspec/fontspec-doc-api.tex')
-rw-r--r-- | macros/unicodetex/latex/fontspec/fontspec-doc-api.tex | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/macros/unicodetex/latex/fontspec/fontspec-doc-api.tex b/macros/unicodetex/latex/fontspec/fontspec-doc-api.tex index bdcb1935b3..5f3ff21d54 100644 --- a/macros/unicodetex/latex/fontspec/fontspec-doc-api.tex +++ b/macros/unicodetex/latex/fontspec/fontspec-doc-api.tex @@ -1,4 +1,4 @@ -%%^^A%% fontspec-doc-api.tex -- part of FONTSPEC <wspr.io/fontspec> +%%^^A%% fontspec-doc-api.tex -- part of FONTSPEC <latex3.github.io/fontspec> \documentclass[a4paper]{l3doc} \usepackage{fontspec-doc-style} @@ -22,13 +22,11 @@ know. New \AAT\ features may be created with this command:\par {\centering\cmd\newAATfeature\marg{feature}\marg{option}\marg{feature code}\marg{selector code}\par}\noindent Use the \XeTeX\ file \path{AAT-info.tex} to obtain the code numbers. -See \exref{newAATfeat}. - -\begin{Xexample}{newAATfeat}{Assigning new \AAT\ features.} +\begin{Verbatim} \newAATfeature{Alternate}{HoeflerSwash}{17}{1} \fontspec{Hoefler Text Italic}[Alternate=HoeflerSwash] This is XeTeX by Jonathan Kew. -\end{Xexample} +\end{Verbatim} \DescribeMacro{\newopentypefeature} @@ -38,7 +36,7 @@ The synonym \cs{newICUfeature} is deprecated. Here's what it would look like in practise: \begin{Verbatim} -\newopentypefeature{Style}{NoLocalForms}{-locl} + \newopentypefeature{Style}{NoLocalForms}{-locl} \end{Verbatim} \DescribeMacro{\newfontfeature} @@ -132,9 +130,13 @@ it may be aliased to another with the such as shown in \exref{alias}. \begin{Xexample}{alias}{Renaming font features.} - \aliasfontfeature{ItalicFeatures}{IF} - \fontspec{Hoefler Text}[IF = {Alternate=1}] - Roman Letters \itshape And Swash + \aliasfontfeature{ItalicFont}{IF} + \aliasfontfeature{ItalicFeatures}{IFF} + \setmainfont{ EBGaramond-Regular.otf }[ + IF = EBGaramond-Italic.otf , + IFF = {Style=Swash} , + ] + Roman Letters \itshape And Swash \end{Xexample} Spaces in feature (and option names, see below) \emph{are} allowed. (You may have @@ -180,8 +182,8 @@ implemented. But you get the idea. \DescribeMacro{\l_fontspec_font} In some cases, it is useful to know what the \LaTeX\ font family of a specific \pkg{fontspec} font is. After a \cmd\fontspec-like -command, this is stored inside the \cmd\l_fontspec_family_tl\ macro. -Otherwise, \LaTeX's own \cmd\f@family\ macro can be useful here, +command, this is stored inside the \cmd{\l_fontspec_family_tl}\ macro. +Otherwise, \LaTeX's own \cmd{\f@family} macro can be useful here, too. The raw \TeX\ font that is defined from the `base' font in the family is stored in \cmd{\l_fontspec_font}. @@ -337,10 +339,10 @@ OpenType language tag |#1|. % /© % ------------------------------------------------ -% The FONTSPEC package <wspr.io/fontspec> +% The FONTSPEC package <latex3.github.io/fontspec> % ------------------------------------------------ -% Copyright 2022-2023 The LaTeX project -% Copyright 2004-2022 Will Robertson, LPPL "maintainer" +% Copyright 2022-2024 The LaTeX project, LPPL "maintainer" +% Copyright 2004-2022 Will Robertson % Copyright 2009-2015 Khaled Hosny % Copyright 2013 Philipp Gesang % Copyright 2013-2016 Joseph Wright |