Changes

Jump to navigation Jump to search
m
no edit summary
'''ATTENTION!!'''
 
As of December 2013, the functionality of the Simplefonts module has been included into the ConTeXt core. You do no longer need to load any external module to take advantage of the simplified font commands. However, the commands have slightly changed:
 
`\setmainfont`
 
is now
 
`\definefontfamily [myfamily] [serif] [DejaVu]`
 
(and the same syntax to set the sans, mono and math font).
 
To use this family:
 
`\setupbodyfont [myfamily]`
 
Note that for monospace fonts, undesired ligatures may be used in `\type`. To avoid this, font features should be disabled:
 
`\definefontfamily [myfamily] [mono] [TeX Gyre Cursor] [features=none]`
 
If you want more examples, have a look at the file {{src|font-sel.mkvi}} in the distribution, which contains a good explanation.
 
-----
\stoptext
</context>
 
=== Legacy ===
 
As of December 2013, the Simplefonts module is included with ConTeXt. No longer is loading an external module necessary use simplified font commands. However, the commands have changed slightly:
 
`\setmainfont`
 
is now:
 
`\definefontfamily [myfamily] [serif] [DejaVu]`
 
which also applies to sans, mono, math fonts.
 
Use the font family as follows:
 
`\setupbodyfont [myfamily]`
 
Note: Monospace fonts may have undesired ligatures when using the `\type` command. Disable the ligature font features to avoid the issue as follows:
 
`\definefontfamily [myfamily] [mono] [TeX Gyre Cursor] [features=none]`
 
See {{src|font-sel.mkvi}} in the distribution for more examples and in depth explanation.
398

edits

Navigation menu