Changes

Jump to navigation Jump to search
Added information from wolfgang about defining other typefaces and fonts
* the interface is much easier to use.
 
* Note that some major changes were released in Oct. 2013. Documentation on this page typically describes 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], <code>simplefonts</code> is already installed.
* If you’re running [[ConTeXt Standalone]] (which is a better optionupdated 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"
*`\definesimplefonttypeface`, defines a single typeface.
*`\simplefonttypeface`, can define a typeface set (such as serif, sans–serif, monospaced, caligraphy and others).
 
The \definesimplefont command can be used when you want a certain font
for the heading of a chapter, section etc. E.g.
 
<context mode="mkiv" source="yes">
\definesimplefont[ChapterFont][Gentium Basic][size=24pt]
\setuphead[chapter][style=ChapterFont]
</context>
 
but Wolfgang doesn’t recommend this command anymore (and removed it from the new, Oct. 2013 version) because you can get the same result with a custom typeface, e.g.
 
<context mode="mkiv" source="yes">
\definesimplefonttypeface[chapterfont][Gentium Basic]
\definefont[ChapterFont][\classfont{chapterfont}{Serif} at 24pt]
\setuphead[chapter][style=ChapterFont]
</context>
 
When you want to change only the global font for your document you
need the <code>\definesimplefonttypeface</code> command, e.g.
 
<context mode="mkiv" source="yes">
\definesimplefonttypeface[documentfont][Gentium Basic]
\setupbodyfont[documentfont]
</context>
=== Handling special cases ===
53

edits

Navigation menu