summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/fontspec/fontspec-doc-fontsel.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/fontspec/fontspec-doc-fontsel.tex')
-rw-r--r--macros/latex/contrib/fontspec/fontspec-doc-fontsel.tex19
1 files changed, 9 insertions, 10 deletions
diff --git a/macros/latex/contrib/fontspec/fontspec-doc-fontsel.tex b/macros/latex/contrib/fontspec/fontspec-doc-fontsel.tex
index df3996c308..884dd409b8 100644
--- a/macros/latex/contrib/fontspec/fontspec-doc-fontsel.tex
+++ b/macros/latex/contrib/fontspec/fontspec-doc-fontsel.tex
@@ -53,7 +53,7 @@ The |set| command never checks; use at your own risk.
}
The plain \cs{fontspec} command is not generally recommended for document use. It is an
-ad hoc commands best suited for testing and loading fonts on a one-off basis.
+ad hoc command best suited for testing and loading fonts on a one-off basis.
All of the commands listed above accept comma-separated
\meta{font feature}=\meta{option} lists; these are described later:
@@ -177,8 +177,8 @@ in the filesystem must be specified with the |Path| feature:
... ]
\end{Verbatim}
Note that \XeTeX\ and \LuaTeX\ are able to load the font without giving an
-extension, but \pkg{fontspec} must know to search for the file; this can can
-be indicated by using the |Path| feature without an argument:
+extension, but \pkg{fontspec} must know to search for the file; this can be
+indicated by using the |Path| feature without an argument:
\begin{Verbatim}
\setmainfont{texgyrepagella-regular}[
Path, BoldFont = texgyrepagella-bold,
@@ -276,7 +276,7 @@ E.g.:
\IfFontExistsTF{/Users/will/Library/Fonts/CODE2000.TTF}{T}{F}
\end{Verbatim}
-The \cs{IfFontExistsTF} command is a synonym for the programming interface function \cs{fontspec_font_if_exist:nTF} (\vref*{sec:api}).
+The \cs{IfFontExistsTF} command is a synonym for the programming interface function \cs{fontspec_font_if_exist:nTF} (\vref{sec:api}).
@@ -452,7 +452,7 @@ which is essentially the same as writing |\verbatimfont|, or to go back to the o
\end{Verbatim}
Only use this feature when necessary; the in-built font switching commands that \pkg{fontspec} generates (such as |\verbatimfont| in the example above) are recommended in all other cases.
-If you don't wish to explicitly set the \NFSS\ family but you would like to know what it is, an alternative mechanism for package writers is introduced as part of the \pkg{fontspec} programming interface; see the function \cs{fontspec_set_family:Nnn} for details (\vref*{sec:api}).
+If you don't wish to explicitly set the \NFSS\ family but you would like to know what it is, an alternative mechanism for package writers is introduced as part of the \pkg{fontspec} programming interface; see the function \cs{fontspec_set_family:Nnn} for details (\vref{sec:api}).
\subsection{Choosing additional \NFSS\ font faces}
@@ -475,16 +475,15 @@ Multiple \feat{FontFace} commands may be used in a single declaration to specify
As an example:
\begin{Verbatim}
\setmainfont{font1.otf}[
- FontFace = {c}{\updefault}{ font2.otf } ,
+ FontFace = {c}{\shapedefault}{ font2.otf } ,
FontFace = {c}{m}{ Font = font3.otf , Color = red }
]
\end{Verbatim}
Writing |\fontseries{c}\selectfont| will result in |font2| being selected, which then followed by |\fontshape{m}\selectfont| will result in |font3| being selected (in red).
-A font face that is defined in terms of a different series but an upright shape (|\updefault|, as shown above) will attempt to find a matching small caps feature and define that face as well.
+A font face that is defined in terms of a different series but an upright shape (|\shapedefault|, as shown above) will attempt to find a matching small caps feature and define that face as well.
Conversely, a font face defined in terms of a non-standard font shape will not.
-There are some standards for choosing shape and series codes; the \LaTeXe\ font selection guide\footnote{\texttt{texdoc fntguide}} lists series |m| for medium, |b| for bold, |bx| for bold extended, |sb| for semi-bold, and |c| for condensed.
-A far more comprehensive listing is included in Appendix~A of Philipp Lehman's `The Font Installation Guide'\footnote{\texttt{texdoc fontinstallationguide}} covering 14 separate weights and 12 separate widths.
+There are some standards for choosing shape and series codes; the \LaTeXe\ font selection guide\footnote{\texttt{texdoc fntguide}} has a comprehensive listing.
The \feat{FontFace} command also interacts properly with the \feat{SizeFeatures} command as follows: (nonsense set of font selection choices)
\begin{Verbatim}
@@ -627,7 +626,7 @@ if it were a `naked' control sequence; \eg, `|M. \fontspec{...} N|' and
% ------------------------------------------------
% The FONTSPEC package <wspr.io/fontspec>
% ------------------------------------------------
-% Copyright 2004-2019 Will Robertson, LPPL "maintainer"
+% Copyright 2004-2020 Will Robertson, LPPL "maintainer"
% Copyright 2009-2015 Khaled Hosny
% Copyright 2013 Philipp Gesang
% Copyright 2013-2016 Joseph Wright