I want to use a really cool open-source OpenType font with my LaTeX document.
I was told that either I could go through a long process of converting the OpenType font to one useable by LaTeX, or I should instead switch to using XeTeX.
Is there a way for me to use an unmodified OpenType font with my LaTeX document (and existing LaTeX installation)?
Best Answer
Switch to XeTeX:
pdflatex
toxelatex
.\usepackage{xltxtra}
at the beginning of your preamble (some XeTeX goodies, in particular it also loadsfontspec
, which is needed for font selection).\setmainfont{Name of OTF font}
in the preamble.It’s as easy as that.
Drawback: you lose the advantages of the
microtype
package. Ah, and be sure to use UTF-8 as your source encoding, and remove any\usepackage{inputenc}
declarations.See also: Differences between LuaTeX, ConTeXt and XeTeX.