Bug#559592: fontconfig: fontconfig and fonts in texmf trees
Package: fontconfig
Version: 2.6.0-4
Severity: wishlist
Hi Keith,
I found that fontconfig already shows interest in /usr/share/texmf/fonts
(triggers file). Now the biggest part of the TeX system is shipped since
TeX Live 2005 in /usr/share/texmf-texlive/fonts.
Checking a bit what is shipped I see that although fontconfig shows
interest in /usr/share/texmf/fonts, it does not have it listed in any
of the /etc/fonts/conf.avail files (is that intended? Why show interest
without adding that path to the config?)
The only reference to /usr/share/texmf I found is in the
conf.d/30-defoma.conf
because we ship tex-gyre and lmodern with defoma.
Furthermore, I am not sure if it is ok to interest in all of
/u/s/texmf*/fonts, because there are loads of .pk fonts fontconfig
will never use (AFAIR), and in addition other files like map files,
.vf files, metafont source files, in short, many many files fontconfig
doesn't want to deal with.
Then there is another problem with type1 fonts in texmf trees. AFAIR type1
fonts need to be accompanying by an .afm file in the same directory,
right? The problem here is that the TDS (TeX Directory Standard) requires
that the afm files are in
..../TEXMFTREE/fonts/afm/....
So already now, with the triggers for /usr/share/texmf/fonts some
fonts might be ignored (all type1 fonts).
So I would like to propose the following:
- change the triggers to
/usr/share/texmf/fonts/opentype
/usr/share/texmf/fonts/truetype
/usr/share/texmf-texlive/fonts/opentype
/usr/share/texmf-texlive/fonts/truetype
that would make sure that all the fonts available and ready for
fontconfig are accessible. Type1 fonts aren't, but without major
restructuring we cannot change that now, as the afms are in a
different place.
- either you or we ship a conf.avail/conf.d file adding the above
four paths to the fonts.conf file.
My initial idea would be that fontconfig is shipping them, since
it also declares interest for these directories, but I leave that
decision of course to you.
If you have any other suggestions, please let me know.
Norbert
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages fontconfig depends on:
ii fontconfig-config 2.6.0-4 generic font configuration library
ii libc6 2.10.2-2 GNU C Library: Shared libraries
ii libfontconfig1 2.6.0-4 generic font configuration library
fontconfig recommends no packages.
Versions of packages fontconfig suggests:
ii defoma 0.11.10-3 Debian Font Manager -- automatic f
-- no debconf information
Reply to: