Changes

Jump to navigation Jump to search
Expanded note at top, and clarified about bold weight.
{{note | The contents of this page are OLD, from before ConTeXt MKIV. It might need a bit of updating...
 
The easier route than what's on this page is to install the [http://tug.org/gentium/ gentium-tug package]. In TeX Live on Linux, type
<tt>sudo /usr/local/bin/tlmgr install gentium-tug</tt>}}
 
== Background ==
I wanted to install the very fine Gentium font to my computer. The font is a free font with a very wide collection of latin Latin and greek Greek glyphs (cyrillic Cyrillic to come later). It can be downloaded from the SIL home web page: http://wwwscripts.sil.org/ cms/scripts/page.php?item_id=Gentium.
While the font system is rather elegant and can be tweaked every possible way, it is difficult to get started with. For a beginner, new fonts may feel extremely difficult to install.
If you manage to get to this point and <tt>texfont</tt> does not complain much, the fonts are installed!
The command above will make the fonts with texnansi encoding. If you don't know what encodings are, then just let it be as it is. If you need another encoding (such as ec, 8r), it can be specified with a switch <tt>--en=ec</tt>. You can install the same font several times with different encodings, ; the naming scheme allows coexistence. With the simple command line you may have problems with ligatures. For example, two hyphens <tt>--</tt> in the source file still print as two hyphens (not as an en dash). This can be cured by giving the switch <tt>--afmpl</tt> which tells <tt>texfont</tt> to use a slightly more intelligent utility (<tt>af2pl</tt>) with the fonts.
UnfortunatelyWith the simple command line you may have problems with ligatures. For example, there seems to be a file missing in gwTeX, so you will need to get two hyphens <tt>default.lig--</tt> somewherein the source file still print as two hyphens (not as an en dash). The easiest way is to download it from http:This can be cured by giving the switch <tt>--afmpl</tt> which tells <tt>texfont</www.tug.org/ftp/texlive/Contents/testinstalled/texmftt> to use a slightly more intelligent utility (<tt>afm2pl</tt>) with the fonts/lig/afm2pl/default.lig . Placing it in your working directory is enough.
Unfortunately, there seems to be a file missing in gwTeX, so you will need to get <tt>default.lig</tt> somewhere. The easiest way is to download it from http://www.tug.org/ftp/texlive/Contents/testinstalled/texmf/fonts/lig/afm2pl/default.lig . Placing it in your working directory is enough, but you could also download all the <tt>.lig</tt> files in that directory and putting them in your own TeX tree at fonts/lig/afm2pl, and then run texhash/mktexlsr.
== Testing the fonts ==
</texcode>
One important thing to note is that '''there aren't Gentium Bold or Bold Italic flavours ''' available, yetfor Gentium Plus. So, "to regularly go where no man has gone before". But bold Gentium Basic and Gentium Book Basic do include bold and bold italic.
Of course, you can (and probably should) put the typescript definitions into another file so that they can be reused in other documents. For more information on using typescripts, Wiki around! My suggestion is to start with the [http://home.salamander.com/~wmcclain/context-help.html Bill McClain's ConTeXt beginners page] and then check the [[TypeScripts]] page. Note that the font names on the latter are slightly different from the ones on this page even though the font is the same.
 
[[Category:Fonts]]
53

edits

Navigation menu