[XeTeX] Latin Modern problems
Freek Dijkstra
software at macfreek.nl
Mon Oct 27 11:08:21 CET 2008
Hi,
I recently came across the fontspec package, and wanted to use the Latin
Modern font. However, so far my attempts have resulted in a PDF with
more-or-less random characters instead of eligible text. Since I'm a
novice when it comes to the font processing in LaTeX, I can't shake the
feeling I'm doing something Very Silly.
Attached are three files, fontspectest.tex, fontspectest.pdf and
fontspectest.log.
The tex file is a simple example taken from
http://en.wikipedia.org/wiki/XeTeX#Example
The PDF output is surely not expected. Instead of "Unicode", the section
title reads "päÖ~ãÄÅ".
The log file contains no errors, but I find these notes very suspicious:
Missing character: There is no Τ in font [lmroman10-regular]!
When I disable Latin Modern using:
\usepackage[cm-default]{fontspec}
the latin characters show up properly, but the greek and cyrilic
characters are not shown (the section only contains the latin
characters: the dots and commas)
When I load a different font, like Computer Modern Unicode I just
downloaded from https://sourceforge.net/projects/cm-unicode/
\setmainfont[Mapping=tex-text]{CMU Serif}
all text displays fine.
So my first suspicion is that the latin modern font in my distribution
is flawed. It came with texlive, which I installed using macports on my
Apple laptop.
Indeed
\setmainfont[ExternalLocation=/opt/local/share/texmf-dist/fonts/opentype/public/lm/,Mapping=tex-text]{lmroman12-regular}
results in the same ineligible text as without specifying it.
Also download the latin modern font directly from
http://www.ctan.org/get/fonts/lm.zip and specifying
\setmainfont[ExternalLocation=/Users/freek/Downloads/lm/fonts/opentype/public/lm/,Mapping=tex-text]{lmroman10-regular}
resulted in the same mess.
On the other hand, the Font Book app that came with Mac OS X can simply
read all the Latin Modern OpenType files (both as installed by macports
and the ones I downloaded myself).
Can someone shed a light on this issue? Is the font corrupt, or -more
likely- did I do something very silly indeed?
Regards,
Freek Dijkstra
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fontspectest.tex
Type: application/x-tex
Size: 1648 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20081027/c7bf7ad4/attachment-0001.tex
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fontspectest.log
Url: http://tug.org/pipermail/xetex/attachments/20081027/c7bf7ad4/attachment-0001.pl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fontspectest.pdf
Type: application/pdf
Size: 36055 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20081027/c7bf7ad4/attachment-0001.pdf
More information about the XeTeX
mailing list