Gentoo Archives: gentoo-user

From: Daniel Frey <djqfrey@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Print quality unreadable in Firefox
Date: Wed, 24 Feb 2016 02:43:36
Message-Id: 56CD18CB.50600@gmail.com
In Reply to: Re: [gentoo-user] Print quality unreadable in Firefox by Thomas Doczkal
1 On 02/23/2016 12:41 PM, Thomas Doczkal wrote:
2
3 > Hi,
4 >
5 > has someone found a solution for this? I currently have the same issue
6 > on a Laptop with Arch Linux whereas I don't experience this on my Gentoo
7 > Desktop machine.
8 >
9 > Would be great if someone could point me in the right direction.
10 >
11
12 I finally figured it out! It took me a few days.
13
14 I found out that the Helvetica font was being mapped to a bitmap font:
15
16 -----
17 $ fc-match helvetica
18 helvR12-ISO8859-1.pcf.gz: "Helvetica" "Regular"
19 -----
20
21 I was scratching my head here.
22
23 Make sure you have media-fonts/liberation-fonts installed (supposed
24 replacement for some MS TTF fonts):
25
26 -----
27 # emerge -pv liberation-fonts
28
29 These are the packages that would be merged, in order:
30
31 Calculating dependencies... done!
32 [ebuild R ] media-fonts/liberation-fonts-2.00.1-r1::gentoo USE="X
33 -fontforge" 0 KiB
34
35 Total: 1 package (1 reinstall), Size of downloads: 0 KiB
36 -----
37
38 Then enable liberation-fonts, disable the bitmap fonts. I also rebuilt
39 the font cache:
40
41 # eselect fontconfig enable 60-liberation.conf
42 # eselect fontconfig enable 70-no-bitmaps.conf
43 # fc-cache -fv
44 -----
45
46 Now my fontconfig looks like this:
47
48 -----
49 # eselect fontconfig list
50 Available fontconfig .conf files (* is enabled):
51 [1] 10-autohint.conf
52 [2] 10-no-sub-pixel.conf
53 [3] 10-scale-bitmap-fonts.conf *
54 [4] 10-sub-pixel-bgr.conf
55 [5] 10-sub-pixel-rgb.conf
56 [6] 10-sub-pixel-vbgr.conf
57 [7] 10-sub-pixel-vrgb.conf
58 [8] 10-unhinted.conf
59 [9] 11-lcdfilter-default.conf
60 [10] 11-lcdfilter-legacy.conf
61 [11] 11-lcdfilter-light.conf
62 [12] 20-unhint-small-dejavu-sans-mono.conf
63 [13] 20-unhint-small-dejavu-sans.conf
64 [14] 20-unhint-small-dejavu-serif.conf
65 [15] 20-unhint-small-vera.conf *
66 [16] 25-unhint-nonlatin.conf
67 [17] 30-metric-aliases.conf *
68 [18] 30-urw-aliases.conf *
69 [19] 40-nonlatin.conf *
70 [20] 42-luxi-mono.conf *
71 [21] 45-latin.conf *
72 [22] 49-sansserif.conf *
73 [23] 50-user.conf *
74 [24] 51-local.conf *
75 [25] 57-dejavu-sans-mono.conf
76 [26] 57-dejavu-sans.conf
77 [27] 57-dejavu-serif.conf
78 [28] 60-latin.conf *
79 [29] 60-liberation.conf *
80 [30] 65-fonts-persian.conf *
81 [31] 65-khmer.conf
82 [32] 65-nonlatin.conf *
83 [33] 69-unifont.conf *
84 [34] 70-no-bitmaps.conf *
85 [35] 70-yes-bitmaps.conf
86 [36] 80-delicious.conf *
87 [37] 90-roboto-regular.conf
88 [38] 90-synthetic.conf *
89 [39] 99pdftoopvp.conf
90 -----
91
92 Lo and behold, it's not showing a bitmap font now:
93
94 -----
95 # fc-match helvetica
96 n019003l.pfb: "Nimbus Sans L" "Regular"
97 -----
98
99 I don't know if the font mapping is correct, but I refreshed a page on
100 bugs.g.o and I can print to PDF without the blocky fonts! So I don't
101 really care if the font mapping is correct now. I can print again! :-)
102
103 Dan

Replies

Subject Author
Re: [gentoo-user] Print quality unreadable in Firefox Michael Orlitzky <mjo@g.o>