Changes

Jump to navigation Jump to search
2,057 bytes removed ,  19:02, 5 May 2014
Added links to the Fonts Manual.
'''Please, someone, fill this page !'''
'''This page is being regorganizedreorganized'''
Using [[LuaTeX]] as the processing engine in ConTeXt allows one to directly use fonts installed on the user's system. Instead of converting all fonts into the standard <code>.tfm</code> and <code>.vf</code> formats (as outlined in some [[My Way]] documents<ref>[http://dl.contextgarden.net/websitesarchive/atl/tex/OpenType.pdf OpenType in ConTeXt] by Adam Lindsay</ref><ref>[http://dl.contextgarden.net/myway/expertfonts.pdf Installing Expert Fonts: Minion Pro] by Idris Samawi Hamid</ref>), LuaTeX creates these metric files automatically at run-time. This greatly simplifies font installation in ConTeXt.
[http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf The new manual chapter on fonts]
= Using fonts =
Handling fonts in LuaTeX can be done* in a simple but limited way, using the <code>simplefonts<[http://pragma-ade.com/code> module;* in the standard way, using [[TypeScripts]general/manuals/mfonts.pdf Old Fonts Manual by Hans Hagen]
== With the <code>simplefonts<[http:/code> module ==/pragma-ade.com/general/manuals/fonts-mkiv.pdf New Fonts Manual by Hans Hagen]
[http://www.ctan.org/tex-archive/macros/context/contrib/context-simplefonts simplefonts] is a third-party module written by Wolfgang Schuster.
It simplifies the use of = Using fonts in LuaTeX by* freeing the user from writing or using [[TypeScripts]];* offering an interface similar to the [http://www.ctan.org/tex-archive/macros/xetex/latex/fontspec/ fontspec package for XeTeX]=
For instance, assuming the [http://www.exljbris.com/delicious.html Delicious Handling fonts] are properly installed and recognized by ConTeXt, you in LuaTeX can simply write:be done <texcode>\usemodule[simplefonts] % load * in a simple but limited way, using the module.\setmainfont[Delicious] % set Delicious as main (serif) font% \setmonofont[mymonofont]% \setmathfont[mymathfont]% \setsansfont[mysansfont] \starttext\rm\tf roman \it italic \bf bold \bi bolditalic \sc smallcaps\stoptext</texcode> === Installing <code>simplefonts</code> === * If you're using LuaTeX along with TeXlive 2009, |<code>simplefonts</code> is already installed* If you're running [[ConTeXt Standalonemodule]], <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 facestandard way, so it has to be emulated. Wolfgang Schuster proposed the following using [http://archive.contextgarden.net/message/20111017.144952.1a72175c.en.html solutions]: <texcode>\usemodule[simplefonts]  \definefontfeature[fakeitalic][default][slant=.25TypeScripts] % for fake bold use “extend=<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 ==
5

edits

Navigation menu