4

Can XeTeX | LuaTeX use MF fonts invented for TeX ? By default (when fontspec package is not loaded) they load Latin Modern fonts as the following exception from eu1enc.def file shows:

\ProvidesFile{eu1enc.def}
     [2010/05/27 v0.1h Experimental Unicode font encodings]
\DeclareFontEncoding{EU1}{}{} 
\DeclareErrorFont{EU1}{lmr}{m}{n}{10}
\DeclareFontSubstitution{EU1}{lmr}{m}{n}
\g@addto@macro\nfss@catcodes{\@makeother:}

Latin Modern (on my computer with MiKTeX) exists in the form of Open Type (otf) and Postsript (pfb) fonts only. They contain merely Latin script. Wouln't it be better to use, e.g., Linux Libertine fonts (which contain more scripts) as default and error font for XeTeX | LuaTeX? With Linux Libertine LuaTeX | XeTeX would produce reasonable output for many languages (e.g. cyrillic) even without fontspec. This would provide better benchmark point. I mean that minimal example file would be compiled without troubles:

\documentclass{minimal}
\begin{document}
Hello world!
Здравствуй, планета!
\end{document}

At the present state of art, "Здравствуй, планета!" will be lost.

1
  • 6
    There are two separate questions here, one about engine support for fonts and a second about the default fond for LaTeX-based systems. It would have been better to split them.
    – Joseph Wright
    Oct 15, 2011 at 7:04

1 Answer 1

8

I can't speak for XeTeX, although I am very sure that both LuaTeX and XeTeX can load metafont fonts. So the answer to your question is "yes". But if there is a Type1 or OpenType alternative, I'd always go for that.

LuaTeX loads cmr10 by default, not latin modern. Of course one could change that, but the idea is to get as much portability between the different engines as possible. So if you run a document through PDFTeX and through LuaTeX, both results should be the same.

The user is supposed to use the fonts he or she wants. Computer Modern und thus Latin Modern has the huge advantage to be a) free b) a big set of fonts (italic, monospaced, sans serif,...) and distributed with all ancient TeX systems. If the distributions chose another font as the default font, nothing much will be gained as there is not really much to do more than:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}
\begin{document}
Hello world.
\end{document}

While in principle I like your idea, I think it is extremely unlikely to ever happen, so I would not bother to think too much about it.

9
  • 6
    As Patrick says, the default font is exactly the same with pdfLaTeX, XeLaTeX and LuaLaTeX (and indeed the plain TeX based formats too). Stability is very important in the TeX world, and changing the font for some engines would be extremely unpopular. Note also that math support is important, and Linux Libertine does not have a full set of math glyphs (see efforts such as XITS and Latin Modern Math for how big a task this is in the OpenType era).
    – Joseph Wright
    Oct 15, 2011 at 7:07
  • Strictly speaking, luatex does not load any fonts by default but the format does, and it is the same set of fonts for all engines. In case of plain there are more fonts loaded other than cmr10 (cmr7, cmr5, math fonts etc.) Oct 15, 2011 at 12:28
  • I wonder why all you are saying that cmr is default for LuaLaTeX. Here is eu2enc.def (from MiKTeX): \ProvidesFile{eu2enc.def} [2010/05/27 v0.1h Experimental Unicode font encodings] \DeclareFontEncoding{EU2}{}{} \DeclareErrorFont{EU2}{lmr}{m}{n}{10} \DeclareFontSubstitution{EU2}{lmr}{m}{n} . Oct 15, 2011 at 13:04
  • If the answer is YES, may I expand my question. How can I instruct LuaLaTeX to use T2A encoded fonts (e.g. cm-super) to typeset cyrillic text? As I see it LuaLaTeX assumes that fonts internally are encoded accoding to unicode. Am I right? Oct 15, 2011 at 13:25
  • 1
    @Igor, please post this question (T2A) as a separate question.
    – topskip
    Oct 15, 2011 at 14:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .