diff options
author | Karl Berry <karl@freefriends.org> | 2017-02-12 23:33:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-02-12 23:33:12 +0000 |
commit | 2783c1b2807e488a59202f7e4605c8d5693c9ab7 (patch) | |
tree | 9507bb165af179f4b55f0cf049b2465965909193 /Master/texmf-dist/source/latex/fontspec/fontspec-doc-fontsel.tex | |
parent | 88ad6ed6179838d65a8c79c1867b8c1de2db3079 (diff) |
fontspec (12feb17)
git-svn-id: svn://tug.org/texlive/trunk@43202 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/fontspec/fontspec-doc-fontsel.tex')
-rw-r--r-- | Master/texmf-dist/source/latex/fontspec/fontspec-doc-fontsel.tex | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/fontspec/fontspec-doc-fontsel.tex b/Master/texmf-dist/source/latex/fontspec/fontspec-doc-fontsel.tex index 110266c858a..90892939bfc 100644 --- a/Master/texmf-dist/source/latex/fontspec/fontspec-doc-fontsel.tex +++ b/Master/texmf-dist/source/latex/fontspec/fontspec-doc-fontsel.tex @@ -14,17 +14,19 @@ fonts. } These are the main font-selecting commands of this package. -The \cs{fontspec} command selects a font for one-time use; all +The \cs{fontspec} command selects a font for one-time use only; all others should be used to define the standard fonts used in a document, as shown in \exref{fontload}. Here, the scales of the fonts have been chosen to equalise their lowercase letter heights. The \feat{Scale} font feature will be discussed further in \vref{sec:font-ind-features}, including methods for automatic scaling. +Note that further options may need to be added to select appropriate bold/italic fonts, +but this shows the main idea. \begin{Lexample}{fontload}{Loading the default, sans serif, and monospaced fonts.} \setmainfont{texgyrebonum-regular.otf} \setsansfont{lmsans10-regular.otf}[Scale=MatchLowercase] - \setmonofont{Inconsolata.otf}[Scale=MatchLowercase] + \setmonofont{Inconsolatazi4-Regular.otf}[Scale=MatchLowercase] \rmfamily Pack my box with five dozen liquor jugs\par \sffamily Pack my box with five dozen liquor jugs\par @@ -390,6 +392,24 @@ The \feat{FontFace} command also interacts properly with the \feat{SizeFeatures} \end{Verbatim} Note that if the first \feat{Font} feature is omitted then each size needs its own inner \feat{Font} declaration. +\subsubsection{An example for \cs{strong}} +\label{sec:strong-example} + +If you wanted to set up a font family to allow nesting of the \cs{strong} +to easily access increasing font weights, you might use a declaration along the following lines: +\begin{Verbatim} +\setmonofont{SourceCodePro}[ + Extension = .otf , + UprightFont = *-Light , + BoldFont = *-Regular , + FontFace = {k}{n}{*-Black} , +] +\strongfontdeclare{\bfseries,\fontseries{k}\selectfont} +\end{Verbatim} + +Further `syntactic sugar' is planned to make this process somewhat easier. + + \subsection{Math(s) fonts} When \cmd\setmainfont, \cmd\setsansfont\ and \cmd\setmonofont\ are used in the |