The plan for defoma removal is here BTW: http://wiki.debian.org/OldPkgRemovals#defoma On Sat, 2009-12-05 at 12:44 +0100, Norbert Preining wrote: > On Mo, 23 Feb 2009, Paul Wise wrote: > > Install the fonts in /usr/share/fonts/opentype/something instead. > > links would do it? I guess so, it would be a bit hacky though. That said, it will be a while before Xorg supports fontconfig. The initial plan for Xorg is to teach it about subdirectories (#539338) and have it use /usr/share/fonts for the default FontPath like Fedora/etc do. So, linking might be better for now if you care about apps using fonts registered with the X server. Alternatively you could get /usr/share/texmf-texlive/fonts added to the default FontPath for xserver-xorg-core. > > Add a config file /etc/fonts/conf.avail/90-something.conf and a symlink > > to it in /etc/fonts/conf.d/. The config file should contain this: > > Sounds easier. > > Some questions: > > > <?xml version="1.0"?> > > <!DOCTYPE fontconfig SYSTEM "/etc/fonts/fonts.dtd"> > > <fontconfig> > > <dir>/usr/share/texmf-texlive/fonts/opentype/public</dir> > > </fontconfig> > > Does that mean that all fonts in *all* directories *below* > /usr/share/texmf-texlive/fonts/opentype/public > are added? Correct, I think that is how fontconfig knows about /usr/share/fonts. > That way we simply can add that config file in texlive-common and have > all the fonts, whenever they are installed, automatically included? Right. > Probably some fc-cache call are necessary? Correct for now, IIRC upstream/Fedora had a plan for fontconfig to automatically notice new fonts. I think that is in 2.8.0, which isn't yet in Debian (Keith Packard is working on it apparently). I would suggest using triggers to do that, fontconfig uses them to notify it about new fonts in these 3 directories: $ cat /var/lib/dpkg/info/fontconfig.triggers interest /usr/share/fonts interest /usr/share/ghostscript/fonts interest /usr/share/texmf/fonts Actually, you might just be able to get the directory added to fontconfig itself and let its triggers deal with that. Or move the fonts to /usr/share/texmf/fonts instead of /usr/share/texmf-texlive/fonts. > Is there a debhelper dh_* for that? Not AFAIK. My recommendations from the above: * Poke the Debian XSF about the status of #539338 * Ask the Debian XSF to add your fonts to the Xorg default FontPath * Ask the fontconfig maintainers to add your font paths to the default configuration and add your font paths to the fontconfig triggers. OR * Move all your fonts into /usr/share/fonts -- bye, pabs http://wiki.debian.org/PaulWise
Attachment:
signature.asc
Description: This is a digitally signed message part