summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/fontspec/fontspec-doc-featset.tex
diff options
context:
space:
mode:
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.tex43
1 files changed, 3 insertions, 40 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 f49d164f652..269a0602b3b 100644
--- a/Master/texmf-dist/source/latex/fontspec/fontspec-doc-featset.tex
+++ b/Master/texmf-dist/source/latex/fontspec/fontspec-doc-featset.tex
@@ -62,45 +62,6 @@ To reset default font features, simply call the command with an empty argument:
Using the |+| form of the command appends the \meta{font features} to any already-selected defaults.
-\section{Font settings from file}
-
-In addition to the defaults that may be specified in the document as described above, when a font is first loaded, a font settings file is searched
-for with the name `\meta{fontname}\texttt{.fontspec}'.\footnote{Located in the current folder or within a standard \texttt{texmf} location.}
-If you want to \emph{disable} this feature on a per-font basis, use the \feat{IgnoreFontspecFile} font option.
-
-The contents of this file can be used to specify default font features without
-having to have this information present within each document.
-\meta{fontname} is stripped of spaces and file extensions are omitted; for
-example, the line above for \TeX\ Gyre Adventor could be placed in a file
-called \texttt{TeXGyreAdventor.fontspec}, or for specifying options for
-\texttt{texgyreadventor-regular.otf} (when loading by filename), the configuration
-file would be \texttt{texgyreadventor-regular.fontspec}.
-(N.B. the lettercase of the names should match.)
-
-This mechanism can be used to define custom names or aliases for your font collections.
-If you create a file \texttt{MyCharis.fontspec} containing, say,
-\begin{Verbatim}
- \defaultfontfeatures[My Charis]
- {
- Extension = .ttf ,
- UprightFont = CharisSILR,
- BoldFont = CharisSILB,
- ItalicFont = CharisSILI,
- BoldItalicFont = CharisSILBI,
- % <any other desired options>
- }
-\end{Verbatim}
-you can load that custom family with \verb|\fontspec{My Charis}| and similar.
-The optional argument to \cs{defaultfontfeatures} must match that requested by the font loading command (\verb|\fontspec|, etc.), else the options won't take effect.
-
-Finally, note that options for font faces can also be defined in this way.
-To continue the example above, here we colour the different faces:
-\begin{Verbatim}
- \defaultfontfeatures[CharisSILR]{Color=blue}
- \defaultfontfeatures[CharisSILB]{Color=red}
-\end{Verbatim}
-And such configuration lines can be stored either inline inside \texttt{My Charis.fontspec} or within their own \texttt{.fontspec} files; in this way, \pkg{fontspec} is designed to handle `nested' configuration options as well.
-
\section{Working with the currently selected features}
\label{sec:addfontfeatures}
@@ -501,7 +462,9 @@ use this feature in \cs{addfontfeatures}.
\subsection{The hyphenation character}
The letter used for hyphenation may be chosen with the \feat{HyphenChar}
-feature. It takes three types of input, which are chosen according to some
+feature. This is a \XeTeX-only feature since \LuaTeX\ cannot set the hyphenation character on a per-font basis; see its \cs{prehyphenchar} primitive for further details.
+
+It takes three types of input, which are chosen according to some
simple rules. If the input is the string \opt{None}, then hyphenation is
suppressed for this font.
If the input is a single character, then this