Difference between revisions of "Command/definedfont"
< Command
Jump to navigation
Jump to search
(remove obsolete syntax table, add hint about features) |
|||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
}} | }} | ||
− | == [[Help:Reference|Syntax] | + | == [[Help:Reference|Syntax]] == |
<syntax>definedfont</syntax> | <syntax>definedfont</syntax> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 25: | Line 15: | ||
\definedfont[file:texgyrepagella-regular.otf at 72pt] Hello World! | \definedfont[file:texgyrepagella-regular.otf at 72pt] Hello World! | ||
</texcode> | </texcode> | ||
+ | |||
+ | Always use a feature set, otherwise your font might lack kerning: | ||
+ | |||
+ | <texcode> | ||
+ | \definedfont[Serif*default at 36pt]Serif with default features | ||
+ | </texcode> | ||
+ | |||
== See also == | == See also == | ||
* {{cmd|definefont}} | * {{cmd|definefont}} | ||
* {{cmd|definefontsynonym}} | * {{cmd|definefontsynonym}} | ||
+ | * {{cmd|definefontfeature}} | ||
== Help from ConTeXt-Mailinglist/Forum == | == Help from ConTeXt-Mailinglist/Forum == |
Latest revision as of 09:46, 22 February 2021
\definedfont
Syntax
\definedfont[...] | |
[...] | font |
Description
This macro loads the font given in the identifier and immediately switches to that font. The identifier works in the same way as the second argument to \definefontsynonym: you can use either a font synonym or a real font.
Example
\definedfont[file:texgyrepagella-regular.otf at 72pt] Hello World!
Always use a feature set, otherwise your font might lack kerning:
\definedfont[Serif*default at 36pt]Serif with default features
See also
Help from ConTeXt-Mailinglist/Forum
All issues with: