Skip to content

Commit

Permalink
Document Letters=Uppercase/Lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
zauguin authored and wspr committed Apr 20, 2024
1 parent 55f5543 commit 0d84aca
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion fontspec-doc-opentype.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1036,13 +1036,24 @@ \subsubsection{Letters} \label{sec:letters}
\opt{SmallCaps}, \opt{PetiteCaps},
\opt{UppercaseSmallCaps}, \opt{UppercasePetiteCaps}, and
\opt{Unicase}.
Additionally \opt{Uppercase} and \opt{Lowercase} are supported for all fonts
in \LuaTeX.
In contrast to earlier version, the \opt{Uppercase} and \opt{Lowercase} options
turn the text into uppercase or lowercase and do not require the text to already
have the right casing. The old behavior of \opt{Uppercase} is available with
\verb|Style=Uppercase|. When the \opt{Uppercase} option is selected,
\verb|Style=Uppercase| and \verb|Kerning=Uppercase| are automatically applied if
supported by the font.


\begin{features}{Letters}
\otf*{SmallCaps}{smcp}
\otf*{PetiteCaps}{pcap}
\otf*{UppercaseSmallCaps}{c2sc}
\otf*{UppercasePetiteCaps}{c2pc}
\otf*{Unicase}{unic}
\otf*{Uppercase}{}
\otf*{Lowercase}{}
\cmidrule{2-4}
\otf{ResetAll}{}
\end{features}
Expand Down Expand Up @@ -1208,7 +1219,7 @@ \subsubsection{Style}
to better match the surrounding letters.
It will (probably) not actually map letters to uppercase.
\note{If you want automatic uppercase letters, look to \LaTeX's
\cmd\MakeUppercase\ command.}
\cmd\MakeUppercase\ command or, when using \LuaTeX, to the \feat{Letters} feature.}
This option used to be selected under the \feat{Letters} feature, but moved here
as it generally does not actually affect the letters themselves.
The \feat{Kerning} feature also contains an \opt{Uppercase} option,
Expand Down

0 comments on commit 0d84aca

Please sign in to comment.