Changes

Jump to navigation Jump to search
946 bytes added ,  00:31, 1 June 2009
→‎Using fonts: Added contents
= Using fonts =
 
Handling fonts in LuaTeX can be done
* in a simple but limited way, using the <code>simplefonts</code> module;
* in the standard way, using [[Typescripts]]
 
== With the <code>simplefonts</code> module ==
 
<code>simplefonts</code> is a third-party module written by Wolfgang Schuster.
 
It simplifies the use of 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.josbuivenga.demon.nl/delicious.html Delicious fonts] are properly installed and recognized by ConTeXt, you can simply write:
 
<texcode>
\usemodule[simplefonts] % load the module
\setmainfont[Delicious] % set Delicious as main (serif) font
 
\starttext
\rm\tf roman \it italic \bf bold \bi bolditalic \sc smallcaps
\stoptext
</texcode>
 
== The standard way: Typescripts ==
 
To be continued
= Old contents =

Navigation menu