summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/xelatex/fontspec
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/xelatex/fontspec')
-rw-r--r--Master/texmf-dist/doc/xelatex/fontspec/README5
-rw-r--r--Master/texmf-dist/doc/xelatex/fontspec/fontspec-example.ltx (renamed from Master/texmf-dist/doc/xelatex/fontspec/fontspec-example.tex)31
-rw-r--r--Master/texmf-dist/doc/xelatex/fontspec/fontspec.pdfbin1971940 -> 1640565 bytes
3 files changed, 16 insertions, 20 deletions
diff --git a/Master/texmf-dist/doc/xelatex/fontspec/README b/Master/texmf-dist/doc/xelatex/fontspec/README
index b9f6e1b014b..067d00b45ed 100644
--- a/Master/texmf-dist/doc/xelatex/fontspec/README
+++ b/Master/texmf-dist/doc/xelatex/fontspec/README
@@ -1,5 +1,5 @@
--------------------------
-THE FONTSPEC PACKAGE v1.10
+THE FONTSPEC PACKAGE v1.12
The fontspec package only works with XeTeX, a unicode capable TeX-variant. It provides an automatic and unified interface for loading fonts in LaTeX. XeTeX allows a direct interface to system-installed fonts, so no manual font installation is required.
@@ -14,7 +14,8 @@ Font families may be selected individually with the command
\fontspec[<font options>]{<font name>}
Commands for selecting fonts efficiently can be created with
- \newfontinstance\myfont[<font options>]{<font name>}
+ \newfontfamily\myfamily[<font options>]{<font name>}
+ \newfontface\myfont[<font options>]{<font name>}
Default document fonts are selected with
\setromanfont[<font options>]{<font name>}
diff --git a/Master/texmf-dist/doc/xelatex/fontspec/fontspec-example.tex b/Master/texmf-dist/doc/xelatex/fontspec/fontspec-example.ltx
index 2aed92a6fc3..9a7d94d0922 100644
--- a/Master/texmf-dist/doc/xelatex/fontspec/fontspec-example.tex
+++ b/Master/texmf-dist/doc/xelatex/fontspec/fontspec-example.ltx
@@ -1,28 +1,23 @@
+\documentclass{article}
-\documentclass[12pt]{article}
+\usepackage{euler}
+\usepackage[cm-default]{fontspec}
+\usepackage{xltxtra}
-\usepackage{euler,fontspec,graphicx}
-
-\defaultfontfeatures{Scale=MatchLowercase ,Mapping=tex-text}
-\setromanfont{Hoefler Text}
-\setsansfont{Gill Sans}
+\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text}
+\setromanfont[Numbers=Lowercase]{FPL Neu}
+\setsansfont{Lucida Sans}
\setmonofont{Lucida Sans Typewriter}
-%% Define the \XeTeX logo:
-\DeclareRobustCommand\XeTeX{%
- \mbox{\smash{%
- X\lower.5ex\hbox{\kern-.12em\reflectbox{E}}\kern-.1667em
- T\kern -.1667em\lower .5ex\hbox {E}\kern -.12em X}}\@}
-%% The logo should be defined on a per-document basis
-%% so that its parameters may be fine tuned for the fonts used.
+\frenchspacing % TeX's default is a little old-fashioned...
\begin{document}
\pagestyle{empty}
-\section{The basics of the \textsf{fontspec} package}
+\section*{The basics of the \textsf{fontspec} package}
The \textsf{fontspec} package enables automatic font selection for \LaTeX{} documents typeset with \XeTeX{}. The basic command is\\
-\indent \verb|\fontspec[font features]{Mac OS X font display name}|.\\
+\indent \verb|\fontspec[font features]{font display name}|.\\
As an example:
\begin{center}
@@ -39,13 +34,13 @@ As an example:
The default roman, sans serif, and typewriter fonts may be set with the \verb|\setromanfont|, \verb|\setsansfont| and \verb|\setmonofont| commands, respectively, as shown in the preamble. They take the same syntax as the \verb|\fontspec| package. All expected font shapes are available:
\begin{center}
- {\scshape Small caps and \itshape small caps italic\dots}\\
+ {\itshape Italics and \scshape small caps\dots}\\
{\sffamily\bfseries Bold sans serif and \itshape bold italic sans serif\dots}
\end{center}
-With the roman and sans serif fonts set in the preamble, text fonts in math mode are also changed: $\cos(n\pi)=\pm 1$. The maths typeface `Euler' has been used in this document (with the \textsf{euler} package---note that the \textsf{eulervm} package will not work in \XeTeX{} because it uses virtual fonts), since the default Computer Modern maths font is rather light.
+With the roman and sans serif fonts set in the preamble, text fonts in math mode are also changed: $\cos(n\pi)=\pm 1$. The maths typeface `Euler' has been used in this document (with the \textsf{euler} package---or the \textsf{eulervm} package if the |xpdfdvimx| driver is being used), since the default Computer Modern maths font is rather light.
\[
- \mathcal F(s) = \int^\infty_0\! f(t) e^{-st}\,\mathrm{d}t
+ \mathcal F(s) = \int^\infty_0 f(t) \exp(-st)\,\mathrm{d}t
\]
You'll also notice the \verb|\defaultfontfeatures| command in the preamble. This command takes a single argument of font features that are then applied to every subsequent instance of font selection. The first argument in this case, \verb|Mapping=tex-text|, enables regular \TeX{} ligatures like \verb|``---''| for ``---''. The second automatically scales the fonts to the same x-height.
diff --git a/Master/texmf-dist/doc/xelatex/fontspec/fontspec.pdf b/Master/texmf-dist/doc/xelatex/fontspec/fontspec.pdf
index b9a50832149..cdf9407b4b8 100644
--- a/Master/texmf-dist/doc/xelatex/fontspec/fontspec.pdf
+++ b/Master/texmf-dist/doc/xelatex/fontspec/fontspec.pdf
Binary files differ