Changes

Jump to navigation Jump to search
990 bytes added ,  06:41, 18 October 2011
Added example for simplefonts with a special case.
* If you're running [[ConTeXt Standalone]], <code>simplefonts</code> can be installed like [http://wiki.contextgarden.net/ConTeXt_Standalone#Installing_third_party_modules any third-party module]:
first-setup.sh --modules="t-simplefonts"
 
=== Handling special cases ===
 
If the font in question has an unusual naming scheme and is missing some features, it may be necessary to specify the names to look for and the font features to implement. In [http://archive.contextgarden.net/message/20111017.113829.e2b20bf4.en.html this example] the font names do not end with *bold and *regular but with *fett and *nor (from the german words "fett" for bold and "normal" for regular). Also the font doesn't provide an italic font face, so it has to be emulated.
 
Wolfgang Schuster proposed the following [http://archive.contextgarden.net/message/20111017.144952.1a72175c.en.html solutions]:
 
<texcode>
\usemodule[simplefonts]
 
\definefontfeature[fakeitalic][default][slant=.25] % for fake bold use “stretch=<number>”
 
\setmainfont
[telegrotesk]
[regularfont=* nor,
italicfont=* nor,
boldfont=* fett,
bolditalicfont=* fett,
italicfeatures=fakeitalic, % just the name of a fontfeature
bolditalicfeatures=fakeitalic]
</texcode>
== The standard way: Typescripts ==
3

edits

Navigation menu