summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/fontspec/fontspec-doc-featset.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-07-29 21:15:34 +0000
committerKarl Berry <karl@freefriends.org>2018-07-29 21:15:34 +0000
commit844aa1bb2859867c52f86f383203db56607bd74c (patch)
tree0718bce5a1758bbbd7fb161e83ee96189020f0e1 /Master/texmf-dist/source/latex/fontspec/fontspec-doc-featset.tex
parent5411eaee4bc1fcb7c8b6c7bd8099f04a4406dc0a (diff)
fontspec (29jul18)
git-svn-id: svn://tug.org/texlive/trunk@48307 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/fontspec/fontspec-doc-featset.tex')
-rw-r--r--Master/texmf-dist/source/latex/fontspec/fontspec-doc-featset.tex46
1 files changed, 22 insertions, 24 deletions
diff --git a/Master/texmf-dist/source/latex/fontspec/fontspec-doc-featset.tex b/Master/texmf-dist/source/latex/fontspec/fontspec-doc-featset.tex
index f3e36ffbbd2..f7c0c724a7a 100644
--- a/Master/texmf-dist/source/latex/fontspec/fontspec-doc-featset.tex
+++ b/Master/texmf-dist/source/latex/fontspec/fontspec-doc-featset.tex
@@ -143,7 +143,8 @@ features requested.
\feat{BoldItalicFeatures}\texttt=\marg{features} \\
\feat{SlantedFeatures}\texttt=\marg{features} \\
\feat{BoldSlantedFeatures}\texttt=\marg{features} \\
- \feat{SmallCapsFeatures}\texttt=\marg{features}
+ \feat{SmallCapsFeatures}\texttt=\marg{features} \\
+ \feat{UprightFeatures}\texttt=\marg{features}
}
It is entirely possible that separate fonts in a family will require
@@ -504,37 +505,34 @@ detail), which improves legibility. Conversely, at large optical
sizes the serifs and other small details may be more delicately
rendered.
-OpenType fonts with optical scaling will exist in
-several discrete sizes, and these will be selected by \XeTeX\
-and Lua\TeX\
-\emph{automatically} determined by the current font size as in
-\exref{optsize}, in which we've scaled down some large text in order to be
-able to compare the difference for equivalent font sizes.
-
-The
-\feat{OpticalSize} feature may be used to specify a different optical
-size.
-With \feat{OpticalSize} set
-to zero, no optical size font substitution is performed, as shown in
-\exref{optsize0}.
-
-\begin{Xexample}{optsize}{A demonstration of automatic optical size selection.}
+OpenType fonts with optical scaling can exist in
+several discrete sizes (in separate font files).
+When loading fonts by name, \XeTeX\ and Lua\TeX\ engines will attempt to
+\emph{automatically} load the appropriate font as determined by the current font size.
+An example of this behaviour is shown in \exref{optsize}, in which some larger text is
+mechanically scaled down to compare the difference for equivalent font sizes.
+
+The \feat{OpticalSize} feature may be used to specify a different optical size.
+With \feat{OpticalSize} set (\exref{optsize0})
+to zero, no optical size font substitution is performed.
+
+\begin{Lexample}{optsize}{A demonstration of automatic optical size selection.}
\fontspec{Latin Modern Roman}
Automatic optical size \\
\scalebox{0.4}{\Huge
Automatic optical size}
-\end{Xexample}
+\end{Lexample}
-\begin{Xexample}{optsize0}{Optical size substitution is suppressed when set to zero.}
- \fontspec{Latin Modern Roman 5 Regular}[OpticalSize=0]
+\begin{Lexample}{optsize0}{Explicit optical size substitution for the Latin Modern Roman family.}
+ \fontspec{Latin Modern Roman}[OpticalSize=5]
Latin Modern optical sizes \\
- \fontspec{Latin Modern Roman 8 Regular}[OpticalSize=0]
+ \fontspec{Latin Modern Roman}[OpticalSize=8]
Latin Modern optical sizes \\
- \fontspec{Latin Modern Roman 12 Regular}[OpticalSize=0]
+ \fontspec{Latin Modern Roman}[OpticalSize=12]
Latin Modern optical sizes \\
- \fontspec{Latin Modern Roman 17 Regular}[OpticalSize=0]
+ \fontspec{Latin Modern Roman}[OpticalSize=17]
Latin Modern optical sizes
-\end{Xexample}
+\end{Lexample}
The \feat{SizeFeatures} feature (\vref*{sec:sizefeature}) can be
used to specify exactly which optical sizes will be used for ranges
@@ -604,7 +602,7 @@ Also see the OpenType \opt{Uppercase} option of the \feat{Letters} feature (\vre
% ------------------------------------------------
% The FONTSPEC package <wspr.io/fontspec>
% ------------------------------------------------
-% Copyright 2004-2017 Will Robertson, LPPL "maintainer"
+% Copyright 2004-2018 Will Robertson, LPPL "maintainer"
% Copyright 2009-2015 Khaled Hosny
% Copyright 2013 Philipp Gesang
% Copyright 2013-2016 Joseph Wright