[XeTeX] [xelatex] xelatex can't find TTF font (Was: xelatex : File gloss-ancientgreek.ldf does not exist!)

Vladimir Lomov lomov.vl at gmail.com
Thu Jan 26 07:44:44 CET 2012


Hello,
** Pau [2012-01-25 09:59:38 -0300]:
[xetex ML more apropriate for your problem than texlive one, so I CC to
it].

> Hi,

> I am trying to compile a long text with English and Ancient Greek characters.

I would suggest to update your TeX Live installation,
tlmgr update --self --all
(I usually use this command)

> I have a rather long and complicated preamble:

So make minimal (not) working example!

> ---------
> \documentclass[a4paper,10pt,openright]{book}

> \usepackage{natbib}
> \setlength{\bibsep}{0.9pt}
> %\usepackage{epubtk}
> \usepackage{graphicx}
> \usepackage{rotating}
> \usepackage{amssymb,amsmath}
> %\usepackage{booktabs}
> \usepackage{color}
> \usepackage{pstricks}
> \usepackage{url}
> %\usepackage{multicol}
> \usepackage{lastpage}

> \usepackage{fancyhdr}

> \usepackage{pifont}
> \usepackage{hyperref} % Watch out: Using hyperref will not allow
>                        % cited names to be broken at the end of line





> \usepackage{xunicode}% provides unicode character macros
> \usepackage{xltxtra} % provides some fixes/extras
> \usepackage{polyglossia,fontspec}
> \setmainlanguage{english}

> \setotherlanguages{ancientgreek}

> \defaultfontfeatures{Scale=MatchLowercase}
> \setmainfont[Mapping=tex-text]{Linux Libertine O}
> \usepackage{changepage}
> \usepackage{setspace}

> %%%%%%%%%%%%%%%%%%%%% Format de cada pagina %%%%%%%%%%%%%%%%%%%%%%%%%

> \pagestyle{fancyplain}                                              %
> \usepackage[Uwe]{fncychap} % forma alternativa de capitols          %
> \addtolength{\headwidth}{\marginparsep}                             %
> \addtolength{\headwidth}{\marginparwidth}                           %
> % recorda't del titol del capitol                                   %
> \renewcommand{\chaptermark}[1]%                                     %
>                    {\markboth{#1}{}}                                %
> \renewcommand{\sectionmark}[1]%                                     %
>                    {\markright{\thesection\ #1}}                    %

> % per a deixar el centre de peu pagina buit                         %
> \cfoot{\sc Pau Amaro-Seoane --                                      %
>            Stellar dynamics in galactic nuclei}                     %

> % donem un gruix a la linia de peu (default=0pt)                    %
> %\footrulewidth 0.4pt                                               %

> % Pagines alternes + numero de la pagina; seccio i capitol          %
> \rhead[]{\fancyplain{}{\bfseries\rightmark}}                        %
> \rfoot[]{\fancyplain{}{\bfseries\thepage}}                          %
> \lhead[\fancyplain{}{\bfseries\leftmark}]{}                         %
> \lfoot[\fancyplain{}{\bfseries\thepage}]{}                          %


> % Llevem l'estil de la capcalera de les pagines senars buides       %
> \makeatletter                                                       %
> \def\cleardoublepage{\clearpage\if at twoside \ifodd\c at page\else%      %
> \hbox{}%                                                            %
> \thispagestyle{empty}%                                              %
> \newpage%                                                           %
> \if at twocolumn\hbox{}\newpage\fi\fi\fi}                              %
> \makeatother                                                        %

> % Redefinicio de voreres...                                         %

> \setlength{\textwidth}{16.00cm}                                     %
> \setlength{\textheight}{19.00cm}                                    %
> \setlength{\oddsidemargin}{-0.0cm}%marge esquerre pag. senars       %
> \setlength{\evensidemargin}{-0.0cm}%marge dret pag. parelles        %

> % Espai entre columnes                                              %
> \setlength{\columnsep}{40pt}                                        %

> % Ratlla entre les columnes                                         %
> \setlength{\columnseprule}{0.2pt}                                   %

> % Allunyem/ apropem la barra de baix                                %
> % (com mes gran la xifra <positiva>, mes cap avall en pagina)       %

> \setlength{\footskip}{2.00cm}                                       %

> % Allunye la barra de dalt i baixe el cos del text                  %
> \headsep = 50pt                                                     %
> \topmargin = 10pt                                                   %

> % Per a deixar els peus de pagina sense ratlla:                     %

> \renewcommand{\footnoterule}{}                                      %

> % No m'agrada el 'contents' aquest, el lleve                        %
> \renewcommand{\contentsname}{Index of the review}                   %

> % Idem 'Figure'                                                     %
> \renewcommand{\figurename}{{\bf Fig.}}                              %

> % Per evitar que Latex fique les grafiques en pagines sense text    %
> \renewcommand{\topfraction}{0.85}                                   %
> \renewcommand{\textfraction}{0.1}                                   %
> \renewcommand{\floatpagefraction}{0.75}                             %

> % Diferent tipus de lletra en peus de grafiques                     %
> \newcommand{\captionfonts}{\small \sf}                              %
> \makeatletter                                                       %
> \long\def\@makecaption#1#2{%                                        %
> \vskip\abovecaptionskip                                             %
> \sbox\@tempboxa{{\captionfonts #1: #2}}%                            %
> \ifdim \wd\@tempboxa >\hsize                                        %
>     {\captionfonts #1: #2\par}                                      %
> \else                                                               %
>     \hbox to\hsize{\hfil\box\@tempboxa\hfil}%                       %
> \fi                                                                 %
> \vskip\belowcaptionskip}                                            %
> \makeatother                                                        %
> % Llevem l'efecte de \makeatletter                                  %

> % Nota: Cal emprar l'estil vell de \captionfont; o sia, \em en      %
> % comptes de \emph                                                  %

> %%%%%%%%%%%%%%%%%%%%% Format de cada pagina %%%%%%%%%%%%%%%%%%%%%%%%%

Like this one:
<example>
\documentclass{book}

\usepackage{fontspec}

\setmainfont{Linux Libertine O}

\begin{document}
Hello, World!
\end{document}
</example>

> -----------------------------------------------------------------------------------------

> When running xelatex, I get:
> (/usr/local/texlive/2011/texmf-dist/tex/latex/euenc/eu1lmr.fd))
> (/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
> (/usr/local/texlive/2011/texmf-dist/tex/latex/realscripts/realscripts.sty)
> (/usr/local/texlive/2011/texmf-dist/tex/latex/metalogo/metalogo.sty))
> (/usr/local/texlive/2011/texmf-dist/tex/xelatex/polyglossia/polyglossia.sty
> (/usr/local/texlive/2011/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
> (/usr/local/texlive/2011/texmf-dist/tex/latex/makecmds/makecmds.sty))
> (/usr/local/texlive/2011/texmf-dist/tex/xelatex/polyglossia/gloss-english.ldf)

> Package polyglossia Warning: File gloss-ancientgreek.ldf does not exist!
> I will nevertheless try to use hyphenation patterns for ancientgreek. on input
> line 37.

AFAIK, polyglossia package don't provide separate support for
'ancientgreek', it is provided with greek language:
\setotherlanguages[variant=ancient]{greek}
this is just a guest from sources, read the manual:
texdoc polyglossia

> kpathsea: Invalid fontname `Linux Libertine O', contains ' '

> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> !
> ! fontspec error: "font-not-found"
> !
> ! The font "Linux Libertine O" cannot be found.
> !
> ! See the fontspec documentation for further information.
> !
> ! For immediate help type H <return>.
> !...............................................

> l.48 ...nfont[Mapping=tex-text]{Linux Libertine O}

> ? x
> No pages of output.

So fontspec didn't find font 'Linux Libertine O'.

> My path has texlive right at the beginning:

> deukalion(pts/23)| echo $PATH
> /usr/local/texlive/2011/bin/i386-linux:/usr/local/bin:/usr/bin:/bin

Minimal example works here:
Archlinux x86_64, TeX Live 2011, up-to-date;
I don't have access (until Sat.) to x86 host with TeX Live to test.

---
WBR, Vladimir Lomov

-- 
The mark of a good party is that you wake up the next morning wanting to
change your name and start a new life in different city.
		-- Vance Bourjaily, "Esquire"


More information about the XeTeX mailing list