[Pkg-cups-devel] Bug#662660: Bug#662660: cups-filters: Please drop ttf-freefonts and use fontconfig to find the best-matching similar font
Fabian Greffrath
fabian at greffrath.com
Wed Mar 7 15:28:34 UTC 2012
Am 07.03.2012 13:05, schrieb Fabian Greffrath:
> make it definitely fail. So maybe this code should get refactored as
> well.
It is, I have attached two more patches.
Please apply the first one "font-index.patch" in any case, regardless
of your decision to use font file names or fontconfig patterns in
pdf.utf-8.*! It appends the index of the font in the font file to its
filename, which gets passed over to otf_load(). It is gracefully
ignored for .ttf files, i.e. in 99.9% percent of all cases but
strictly required for .ttc files. It is thus crucial if you want to
replace the "uming.ttc/0" entry in pdf.utf-8.heavy with a
corresponding fontconfig pattern.
The second patch "fontconfig-patterns.patch" entirely removes the
attempt to directly load font files from the $datadir/fonts directory
and relies on fontconfig instead. Of course, it requires application
of "pdf.utf-8.patch" which I sent in my previous mail and which
replaced all the font file names in pdf.utf-8.* with corresponding
fontconfig patterns, though.
Best Regards,
Fabian
More information about the Pkg-cups-devel
mailing list