Changes

Jump to navigation Jump to search
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.
 
-----
=== Introduction Warning ===
`simplefonts` The information on this page is outdated. See {{cmd|definefontfamily}} for details on a third–party module written by Wolfgang Schustersimpler font mechanism defined for ConTeXt MKIV. This remainder of this page is historical in nature and the examples may no longer work with recent ConTeXt distributions.
It has two main advantages over the standard font handling in ConTeXt:=== History ===
* the user doesn’t need to write [[Fonts_in_LuaTeX#The_standard_wayWolfgang Schuster wrote a third–party module named `simplefonts`, which held a few advantages over standard ConTeXt font handling:_Typescripts|typescripts]].
* the user doesn’t need to write [[Fonts_in_LuaTeX#The_standard_way:_Typescripts|typescripts]]; and
* the interface is much easier to use.
* Note that some major Major changes were released in Oct. October, 2013. Documentation on As such, this page typically describes documents the earlier version of simplefonts distributed with TeX Live 2013, unless otherwise noted.
=== Installing <code>simplefonts</code> ===
* If you’re using LuaTeX along with [https://www.tug.org/texlive/ TeX Live]Before October, 2013, installation of <code>simplefonts</code> is already for[[ConTeXt Standalone]] could be installed.like [[ConTeXt_Standalone#Installing_third_party_modules|any third-party module]]:
* If you’re running [[ConTeXt Standalone]] (which is updated more often, allowing use of newer features but with less stability testing), <code>simplefonts</code> can be installed like [[ConTeXt_Standalone#Installing_third_party_modules|any third-party module]]:
first-setup.sh --modules="t-simplefonts"
 
For newer release of ConTeXt (or LuaTeX with [https://www.tug.org/texlive/ TeX Live]), <code>simplefonts</code> is installed by default, no additional installation steps are necessary.
==== Setting the system font directory ====
\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.
 
 
[[Category:Old Content]]

Navigation menu