[Pkg-cups-devel] Bug#670055: cups-filters: Printing a text file fails when Liberation is the only TrueType font available
Brian Potkin
claremont102 at gmail.com
Fri Apr 27 14:35:07 UTC 2012
On Fri 27 Apr 2012 at 10:09:14 +0200, Fabian Greffrath wrote:
> 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.
I put fonts-cantarell on the system but it did nothing for me. Maybe it
isn't important because it only replicates a part of what you have.
> 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.
This is important, though. After rebuilding and printing there is now a
/tmp/printout file which pdffonts identifies as having the Liberation
fonts embedded. If it is of interest, here is part of the error_log:
D [27/Apr/2012:10:58:13 +0100] [Job 39] Page = 612x792; 18,36 to 594,756
D [27/Apr/2012:10:58:13 +0100] [Job 39] ### Candidate: /usr/share/fonts/X11/Type1/n022003l.pfb:Type 1:100
D [27/Apr/2012:10:58:13 +0100] [Job 39] ### Candidate: /usr/share/fonts/truetype/liberation/LiberationMono-Regular.ttf:TrueType:100
D [27/Apr/2012:10:58:13 +0100] [Job 39] ### Chosen: /usr/share/fonts/truetype/liberation/LiberationMono-Regular.ttf/0
D [27/Apr/2012:10:58:13 +0100] [Job 39] ### Candidate: /usr/share/fonts/X11/Type1/n022004l.pfb:Type 1:100
D [27/Apr/2012:10:58:13 +0100] [Job 39] ### Candidate: /usr/share/fonts/X11/Type1/n022003l.pfb:Type 1:100
D [27/Apr/2012:10:58:13 +0100] [Job 39] ### Candidate: /usr/share/fonts/truetype/liberation/LiberationMono-Bold.ttf:TrueType:100
D [27/Apr/2012:10:58:13 +0100] [Job 39] ### Chosen: /usr/share/fonts/truetype/liberation/LiberationMono-Bold.ttf/0
D [27/Apr/2012:10:58:13 +0100] [Job 39] ### Candidate: /usr/share/fonts/X11/Type1/n022023l.pfb:Type 1:100
D [27/Apr/2012:10:58:13 +0100] [Job 39] ### Candidate: /usr/share/fonts/X11/Type1/n022003l.pfb:Type 1:100
D [27/Apr/2012:10:58:13 +0100] [Job 39] ### Candidate: /usr/share/fonts/truetype/liberation/LiberationMono-Italic.ttf:TrueType:100
D [27/Apr/2012:10:58:13 +0100] [Job 39] ### Chosen: /usr/share/fonts/truetype/liberation/LiberationMono-Italic.ttf/0
D [27/Apr/2012:10:58:13 +0100] [Job 39] ### Candidate: /usr/share/fonts/X11/Type1/n022024l.pfb:Type 1:
D [27/Apr/2012:10:58:13 +0100] [Job 39] ### Candidate: /usr/share/fonts/X11/Type1/n022023l.pfb:Type 1:100
D [27/Apr/2012:10:58:13 +0100] [Job 39] ### Candidate: /usr/share/fonts/X11/Type1/n022004l.pfb:Type 1:100
D [27/Apr/2012:10:58:13 +0100] [Job 39] ### Candidate: /usr/share/fonts/X11/Type1/n022003l.pfb:Type 1:100
D [27/Apr/2012:10:58:13 +0100] [Job 39] ### Candidate: /usr/share/fonts/truetype/liberation/LiberationMono-BoldItalic.ttf:TrueType:100
D [27/Apr/2012:10:58:13 +0100] [Job 39] ### Chosen: /usr/share/fonts/truetype/liberation/LiberationMono-BoldItalic.ttf/0
D [27/Apr/2012:10:58:13 +0100] PID 17922 (/usr/lib/cups/filter/texttopdf) exited with no errors.
> 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.
Thank you for perservering with this and for the guidance. I'm available
for any future testing you may need.
Regards,
Brian.
More information about the Pkg-cups-devel
mailing list