Changes

Jump to navigation Jump to search
949 bytes added ,  17:11, 4 June 2009
→‎Using fonts: +infos on installing/loading typescripts, according to the ongoing thread in the mailing-list
Handling fonts in LuaTeX can be done
* in a simple but limited way, using the <code>simplefonts</code> module;
* in the standard way, using [[TypescriptsTypeScripts]]
== With the <code>simplefonts</code> module ==
It simplifies the use of fonts in LuaTeX by
* freeing the user from writing or using [[TypescriptsTypeScripts]];
* offering an interface similar to the [http://www.ctan.org/tex-archive/macros/xetex/latex/fontspec/ fontspec package for XeTeX]
== The standard way: Typescripts ==
To === Installing typescripts === Installing typescripts consists in the following: 1. Copy the typescript files into either <texcode>$TEXMF/tex/texmf-fonts/tex/context/user$TEXMF/tex/texmf-project/tex/context/user</texcode>2. Run <code>context --generate By convention, typescript files are named like <code>type-(fontname|foundry).tex</code>.  It may happen that some <code>type-xx.tex</code> typescript file depends on mkiv-specific code located in a matching <code>type-xx.mkiv</code> file. In this case, both files need to be continuedinstalled. === Loading typescripts === A typescript file named <code>type-xx.tex</code> should be loaded using \usetypescriptfile[type-xx] An alternative way is \usetypefile[xx]where ConTeXt prepends <code>type-</code> when it loads the file; but <cmd>usetypescriptfile</cmd> is the preferred command because it takes care of the<cmd>starttypescriptcollection</cmd>/<cmd>stoptypescriptcollection</cmd> environments.
=== Where to find existing typescripts ===

Navigation menu