[XeTeX] Latin Modern problems

Wolfgang Schuster schuster.wolfgang at googlemail.com
Mon Oct 27 11:26:33 CET 2008


On Mon, Oct 27, 2008 at 11:08 AM, Freek Dijkstra <software at macfreek.nl> wrote:
> 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?

Remove your macports TeX installation and use MacTeX 2008 [1]. The latin modern
fonts from CTAN re not compatible with your fontspec version because the names
of the fonts changed this year and your XeTeX is also outdated.

[1] http://www.tug.org/mactex/

Wolfgang


More information about the XeTeX mailing list