[Pkg-cups-devel] Bug#670055: cups-filters: Printing a text file fails when Liberation is the only TrueType font available

Fabian Greffrath fabian at greffrath.com
Fri Apr 27 08:09:14 UTC 2012


I've got two good news for you:
1) I was finally able to reproduce your issue on one of my machines
2) I think I found the culprit

Ad 1) I didn't realize that I still had another font installed, the 
Opentype Cantarell font. I was so focussed on Truetype fonts and 
gsfonts-x11 that I simply overlooked it. When I removed this one, I've 
got the exact same symptoms that you described. Since this sounded a 
bit too random, I suspected the culprit to lie in our fontconfig query.

Ad 2) In your cups-filters source copy, in the filters/texttopdf.c 
file, there is line 62 which calls FcPatternAddInteger() and also has 
a comment that this will "guide fc". However, this seems to have 
puzzled the fontconfig pattern, instead.

Please comment out the line and rebuild the package following the 
procedure I described in one of my previous mails. If you feel 
unconfortable editing the file manually (you should), you might as 
well apply the patch I attached to this email (again with "quilt 
import /path/to/patch" and then "quilt push -a"). Please rebuild the 
package and try again.

If this really turns out to be the culprit, I have to check with the 
fontconfig maintainers what's wrong about this command. In any case, 
it did not achieve what it was supposed to do, because most of the 
fonts in the list suggested by fontconfig and printed out by my 
fc-test program were non-monospaced, anyway.

  - Fabian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: no-FcPatternAddInteger.patch
Type: text/x-diff
Size: 510 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cups-devel/attachments/20120427/9d5cf36f/attachment.patch>


More information about the Pkg-cups-devel mailing list