Bug#689837: Acknowledgement (Please register the psnfss fonts with fontconfig)
Am 08.10.2012 10:57, schrieb Fabian Greffrath:
So it'd be a better idea to symlink all the relevant .pfb and .afm
files into /usr/share/fonts/type1 than adding their directories to
fontconfig's search pattern, right?
I have added a few lines to debian/rules that take all the .pfb files
in the adobe, bitstrea and urw directories, checks if a corresponding
.afm file exists and than adds symlinks for both files to
debian/texlive-fonts-recommended.links. These symlinks point to
/usr/share/fonts/type1/texlive-fonts-recommended/, where the fonts can
be found by fontconfig. Of course, this directory has to be created in
advance, e.g. by means of a debian/texlive-fonts-recommended.dirs file.
I have restricted this procedure to the adobe, bitstrea and urw fonts,
because I think they are the only ones in the package that add value
for non-TeX related applications. I have checked the other fonts as
well, but they are either symbol fonts (public/eurosym,
public/marvosym, public/wasy) or specialized duplicates of Times
(public/txfonts) or Palatino (public/fpl, public/mathpazo,
public/pxfonts) or exist only in uppercase (public/rsfs).
- Fabian
diff --git a/debian/rules.orig b/debian/rules
index a7d9a17..e091093 100755
--- a/debian/rules.orig
+++ b/debian/rules
@@ -47,6 +47,13 @@ install-stamp: build-stamp
if [ -r debian/$$i.README ] ; then cat debian/$$i.README > debian/$$i.README.Debian ; fi ; \
cat debian/README.Debian >> debian/$$i.README.Debian ; \
done
+ for p in texmf-dist/fonts/type1/{adobe,bitstrea,urw}/*/*.pfb ; do \
+ a=`echo $$p | sed -e 's/type1\|pfb/afm/g'` ; \
+ if [ -e $$p -a -e $$a ] ; then \
+ echo usr/share/texlive/$$p usr/share/fonts/type1/texlive-fonts-recommended/`basename $$p` ; \
+ echo usr/share/texlive/$$a usr/share/fonts/type1/texlive-fonts-recommended/`basename $$a` ; \
+ fi ; \
+ done | sort >> debian/texlive-fonts-recommended.links
touch install-stamp
binary-arch:
Reply to: