I'd like to use the gentium font in a LaTeX document, and the instructions I found at this site make it look rather difficult.
Is there a simple package that is now available that would allow me to use the gentium font more easily?
I'd like to use the gentium font in a LaTeX document, and the instructions I found at this site make it look rather difficult.
Is there a simple package that is now available that would allow me to use the gentium font more easily?
Posting the XeLaTeX comment as an answer, per suggestion. You just \setromanfont{Gentium}.
Note that the font Gentium doesn't yet have a bold variant, so if you need to use bold frequently, it's recommended that you use a different font. (If your interest in Gentium is because of its wide character repertoire, you may want to use a font like Charis SIL. If your interest was in the appearance, then there's a "Gentium Basic" that doesn't include Greek or Cyrillic characters, but has bold variants.) But in practice I found I could use Gentium with Gentium Basic Bold as the bold font, and it looks natural to my eyes (you still won't have bold Greek, of course):
\documentclass{article}
\usepackage{fontspec}
\setromanfont[BoldFont={Gentium Basic Bold},ItalicFont={Gentium Italic}]{Gentium}
\begin{document}
Look:\\
Hèllö wőrld: γεντιυμ \textit{Italic} \textbf{Bold}\\
\textbf{Hèllö wőrld}: γεντιυμ \textit{Italic} Bold
\end{document}
\setromanfont is "the old name for \setmainfont, retained for backwards compatibility" — so yes \setmainfont is the new name, but \setromanfont is also a (deprecated) synonym and should work I think.
– ShreevatsaR
Jun 07 '15 at 22:43
Renderer=Basic,Ligatures=TeX. Otherwise ligatures like -- did not work (using Texlive 2015).
– bluenote10
Aug 24 '15 at 14:37
Now there is a gentium-tug package that enables you to
\usepackage{gentium}
No additional steps required.
If you want to use pdfLaTeX, you can use the autoinst tool.
cd ${YOUR_TEX_DOCUMENT_DIR}
autoinst ${PATH_TO_GENTIUM}/Gen*.ttf
This will convert the ttf files and create a Gentium.sty file in the current directory. Now you can simply
\usepackage{Gentium}
to switch your LaTeX font to Gentium. Alternatively, try GentiumBasic for bold.
The gentium package found on CTAN may help get you started with using Gentium in pdfLaTeX.
Not sure if this is relevant: "Other encodings, and LaTeX support remain to be added." (from the linked page on CTAN).
– bryn Aug 04 '10 at 10:23While the XeLaTeX way is probably easier, if you wanted to stick with pdflatex, you could try the fontinst tool for creating the necessary package.