Difference between revisions of "Command/setfontfeature"

From Wiki
Jump to navigation Jump to search
(new)
 
m (fix typo)
 
Line 15: Line 15:
 
</cd:description>
 
</cd:description>
 
<cd:examples><cd:example title="different possibilities to activate small caps"><context source="yes">
 
<cd:examples><cd:example title="different possibilities to activate small caps"><context source="yes">
\def\Example{\tf Upright, {\it Italics,} {\bf Bold} und {\bi Bold Italics.}\par}
+
\def\Example{\tf Upright, {\it Italics,} {\bf Bold} and {\bi Bold Italics.}\par}
 
\setupbodyfont[libertinus,rm,12pt]
 
\setupbodyfont[libertinus,rm,12pt]
  

Latest revision as of 22:29, 3 November 2023


\setfontfeature

Summary

The command \setfontfeature is used to activate a defined font feature (OpenType or virtual).

Settings

\setfontfeature{...}
{...}name

Description

Examples

different possibilities to activate small caps

\def\Example{\tf Upright, {\it Italics,} {\bf Bold} and {\bi Bold Italics.}\par}
\setupbodyfont[libertinus,rm,12pt]

\Example
{\setfontfeature{smallcaps}\Example}
\style[style=smallcaps]{\Example}
{\setsmallcaps\Example}

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: