[tex-live] Cannot typeset a greek text in XeTeX using the Greek Font Society fonts in texlive 2009

Christos Gitsis el01120 at mail.ntua.gr
Fri Sep 25 20:38:46 CEST 2009


I cannot typeset a greek text in XeTeX using the Greek Font Society fonts in texlive 2009. The fonts are not found by xelatex.

A sample input file containing some greek characters, say greekexample.tex:

\documentclass[a4paper]{article}

\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xgreek}

\setmainfont[Mapping=tex-text]{GFS Didot}
%\setmainfont[Mapping=tex-text]{Liberation Serif}

\begin{document}
Παράδειγμα κειμένου
\end{document}

Steps to reproduce: $ xelatex greekexample.tex

I get error messages like: kpathsea: Invalid fontname `GFS Didot', contains ' '.
I don't think the space (' ') is the problem. If I choose the font `Liberation Serif', there are no errors.

The fonts seem to be installed on my system, e.g:
myuser /usr/share/texmf-dist/fonts/opentype/public/gfsdidot $ ls
GFSDidot.otf GFSDidotBoldItalic.otf GFSOlga.otf
GFSDidotBold.otf GFSDidotItalic.otf

I use the package texlive-2009 in Arch Linux. Initially, I reported the
problem there, but I got the answer (if I understood it correctly) that
those fonts which come with TexLive are not expected to be working with
XeTeX, and that if I want to use them in, say, XeTeX or OpenOffice.org
i should do somethink like:

"create a symlink
from /usr/share/texmf-dist/fonts/opentype/public/<some_font_you_want>
to ~/.fonts/OTF/. You might have to run fc-cache, and then mkfontscale
~/.fonts/OTF and mkfontdir ~/.fonts/OTF."

I can do this, but I think that this is a problem, because I would
expect those fonts to be found by XeTeX.


More information about the tex-live mailing list