[Pkg-fonts-devel] Bug#578141: debian-specific wrong renaming of this font causes XeTeX problems
Michael Stapelberg
michael+db20090501 at stapelberg.de
Sat Apr 17 09:09:44 UTC 2010
Package: ttf-linux-libertine
Version: 4.4.1-4
Severity: important
In #523186, a patch was introduced which renames LinLibertine_Re.ttf to
"Linux Libertine O" (check with fontforge
/usr/share/fonts/truetype/linux-libertine/LinLibertine_Re.ttf). Note that
the truetype font (.ttf) was renamed!
When downloading Linux Libertine in the same version (4.4.1) from sourceforge,
you get a tgz containing LinLibertine_Re-4.4.1.otf (name "Linux Libertine O")
and LinLibertine_Re-4.4.1.ttf (name "Linux Libertine"). In my opinion, bug
#523186 was fixed in a wrong way (by renaming the ttf to the otf name instead
of just including the otf fonts).
Now consider the following XeTeX document (say, mwe.tex):
\documentclass{scrartcl}
\usepackage{xltxtra}
\setmainfont{Linux Libertine}
\begin{document}
test
\end{document}
When running "xelatex mwe.tex" with the ttf-linux-libertine package, you get
the following error:
kpathsea: Invalid fontname `Linux Libertine', contains ' '
! Font \zf at basefont="Linux Libertine" at 10.0pt not loadable: Metric (TFM) file
or installed font not found.
\zf at fontspec ...ntname \zf at suffix " at \f at size pt
\unless \ifzf at icu \zf at set@...
l.3 \setmainfont{Linux Libertine}
When replacing the ttf files with the original ones from sourceforge, it works
fine. So, please do not include the patch renaming this font any longer, it
breaks documents.
PS: There later was a similar bug, #511145, which was "fixed" by applying a
workaround in fontconfig. I think XeTeX does not use fontconfig and thus
requires the font name to actually be correct.
-- Package-specific info:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-============================-============================-========================================================================
ii fontconfig 2.6.0-4 generic font configuration library - support binaries
ii libfreetype6 2.3.11-1 FreeType 2 font engine, shared library files
ii libxft2 2.1.14-1 FreeType-based font drawing library for X
ii texlive-xetex 2009-8 TeX Live: XeTeX packages
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32.8-midna-2 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
ttf-linux-libertine depends on no packages.
Versions of packages ttf-linux-libertine recommends:
ii fontconfig 2.6.0-4 generic font configuration library
ttf-linux-libertine suggests no packages.
-- no debconf information
More information about the Pkg-fonts-devel
mailing list