Skip to content

Commit

Permalink
update docu, WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Nov 4, 2023
1 parent 7f61fa4 commit 33bba8d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fontspec-doc-featset.tex
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ \subsection{Colour}
(For example, if you set the colour in a \verb|\setmainfont| command, \verb|\color{...}| and related commands, including hyperlink colouring, will no longer have any effect on text in this font.)
Therefore, \pkg{fontspec}'s colour commands are best used to set explicit colours in specific situations, and the \pkg{xcolor} package is recommended for more general colour functionality.

The colour is defined as a triplet of two-digit Hex RGB
The colour can be defined as a triplet of two-digit Hex RGB
values, with optionally another value for the transparency (where
|00| is completely transparent and |FF| is opaque.)
\begin{Lexample}{color}{Selecting colour with transparency.}
Expand All @@ -341,8 +341,6 @@ \subsection{Colour}
{\addfontfeature{Color=DDBB2299}P}\kern-0.5ex
{\addfontfeature{Color=00BB3399}R}
\end{Lexample}
Transparency is supported by \LuaLaTeX; \XeLaTeX\ with the \texttt{xdvipdfmx} driver
does not support this feature.

If you load the \pkg{xcolor} package, you may use any named colour instead
of writing the colours in hexadecimal.
Expand Down

0 comments on commit 33bba8d

Please sign in to comment.