Hi you all!

I’ve a question regarding the ‘fontspec’ package: It seems that Xetex
won’t compile a file that uses the ‘fontspec’ package if the ‘lmodern’
fonts are not installed resp. not available on the system even if I
don’t use these fonts. Is this true and if so why do the ’lmodern’ fonts
have to be installed even if they are not used? Please see the attached
files. By the way: I still use the elder version of Xetex included in
Debian stable but I get the exactly same error message with a newer
version of Xetex (version 2009-8 of package ‘texlive-xetex’) in Debian
unstable.

Thanks in advance for your help!

Best regards

Raphael
This is XeTeXk, Version 3.141592-2.2-0.996-patch2 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./testfile.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german, ngerman, loaded.
(/usr/share/texmf-texlive/tex/latex/koma-script/scrartcl.cls
Document Class: scrartcl 2006/07/30 v2.95b KOMA-Script document class (article)

(/usr/share/texmf-texlive/tex/latex/koma-script/scrkbase.sty
(/usr/share/texmf-texlive/tex/latex/koma-script/scrlfile.sty
Package scrlfile, 2006/03/28 v2.95 KOMA-Script package (loading files)
                  Copyright (C) Markus Kohm

) (/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty))
(/usr/share/texmf-texlive/tex/latex/base/size11.clo)
(/usr/share/texmf-texlive/tex/latex/koma-script/typearea.sty
Package typearea, 2006/07/30 v2.95b KOMA-Script package (type area)
                  Copyright (C) Frank Neukam, 1992-1994
                  Copyright (C) Markus Kohm, 1994-2002

)) (/usr/share/texmf-texlive/tex/generic/ifxetex/ifxetex.sty)
(/usr/share/texmf-texlive/tex/generic/babel/babel.sty
(/usr/share/texmf-texlive/tex/generic/babel/ngermanb.ldf
(/usr/share/texmf-texlive/tex/generic/babel/babel.def)))
(/usr/share/texmf-texlive/tex/xelatex/xunicode/xunicode.sty)
(/usr/share/texmf-texlive/tex/xelatex/fontspec/fontspec.sty
(/usr/share/texmf-texlive/tex/latex/tools/calc.sty)
(/usr/share/texmf-texlive/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texmf-texlive/tex/latex/xkeyval/xkeyval.tex))

! LaTeX Error: File `lmodern.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
(/usr/share/texmf-texlive/tex/xelatex/euenc/eu1enc.def)
(/usr/share/texmf-texlive/tex/xelatex/euenc/lm/eu1lmr.fd)kpathsea: Illegal 
fontname `[lmroman10-regular]': contains '['

! Font EU1/lmr/m/n/10=[lmroman10-regular] at 10.0pt not loadable: Metric (TFM) 
file or installed font not found.
<to be read again> 
                   relax 
l.100 \fontencoding\encodingdefault\selectfont
                                              
? 
)
fontspec.cfg loaded.
(/usr/share/texmf-texlive/tex/xelatex/fontspec/fontspec.cfg))
(/usr/share/texmf-texlive/tex/xelatex/xltxtra/xltxtra.sty
(/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
(/etc/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf-texlive/tex/xelatex/graphics/xetex.def)))
(/usr/share/texmf-texlive/tex/latex/etex/etex.sty)
(/usr/share/texmf-texlive/tex/latex/base/fixltx2e.sty))
No file testfile.aux.
[1] (./testfile.aux) )

** WARNING ** This .map file looks like a dvips format fontmap file.
** WARNING ** -- Current input buffer is: bchb8r CharterBT-Bold 
"TeXBase1Encoding ReEncodeFont" <8r.enc <bchb8a.pfb
** WARNING ** -- Reading fontmap file stopped at: file="pdftex.map", line=6.
Output written on testfile.pdf (1 page).
Transcript written on testfile.log.

Attachment: testfile.log
Description: Binary data

Attachment: testfile.pdf
Description: Adobe PDF document

\documentclass[a4paper]{scrartcl}

\usepackage{ifxetex}
\usepackage[ngerman]{babel}

\ifxetex
    \usepackage{xunicode}       % provides unicode character macros
    \usepackage{fontspec}       % provides font selecting commands
    \usepackage{xltxtra}        % provides some fixes/extras
    
    \setmainfont[Mapping=tex-text,Ligatures=Common,Numbers={OldStyle,
    Proportional}]{Linux Libertine O}
    \setsansfont[Mapping=tex-text]{Linux Biolinum O}
    \defaultfontfeatures{Scale=MatchLowercase}
\else
    \usepackage[utf8]{inputenc}
    \usepackage[T1]{fontenc}
    \usepackage{textcomp}       % für einige Sonderzeichen (∗,↑ etc.)
\fi


\begin{document}

\section{Testdokument}

Dies ist ein Testdokument. Dies ist ein Testdokument. Dies ist ein
Testdokument. Dies ist ein Testdokument. Dies ist ein Testdokument.

\end{document}


--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex

Reply via email to