On 02/23/2016 12:41 PM, Thomas Doczkal wrote:

> Hi,
> 
> has someone found a solution for this? I currently have the same issue
> on a Laptop with Arch Linux whereas I don't experience this on my Gentoo
> Desktop machine.
> 
> Would be great if someone could point me in the right direction.
> 

I finally figured it out! It took me a few days.

I found out that the Helvetica font was being mapped to a bitmap font:

-----
$ fc-match helvetica
helvR12-ISO8859-1.pcf.gz: "Helvetica" "Regular"
-----

I was scratching my head here.

Make sure you have media-fonts/liberation-fonts installed (supposed
replacement for some MS TTF fonts):

-----
# emerge -pv liberation-fonts

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-fonts/liberation-fonts-2.00.1-r1::gentoo  USE="X
-fontforge" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
-----

Then enable liberation-fonts, disable the bitmap fonts. I also rebuilt
the font cache:

# eselect fontconfig enable 60-liberation.conf
# eselect fontconfig enable 70-no-bitmaps.conf
# fc-cache -fv
-----

Now my fontconfig looks like this:

-----
# eselect fontconfig list
Available fontconfig .conf files (* is enabled):
  [1]   10-autohint.conf
  [2]   10-no-sub-pixel.conf
  [3]   10-scale-bitmap-fonts.conf *
  [4]   10-sub-pixel-bgr.conf
  [5]   10-sub-pixel-rgb.conf
  [6]   10-sub-pixel-vbgr.conf
  [7]   10-sub-pixel-vrgb.conf
  [8]   10-unhinted.conf
  [9]   11-lcdfilter-default.conf
  [10]  11-lcdfilter-legacy.conf
  [11]  11-lcdfilter-light.conf
  [12]  20-unhint-small-dejavu-sans-mono.conf
  [13]  20-unhint-small-dejavu-sans.conf
  [14]  20-unhint-small-dejavu-serif.conf
  [15]  20-unhint-small-vera.conf *
  [16]  25-unhint-nonlatin.conf
  [17]  30-metric-aliases.conf *
  [18]  30-urw-aliases.conf *
  [19]  40-nonlatin.conf *
  [20]  42-luxi-mono.conf *
  [21]  45-latin.conf *
  [22]  49-sansserif.conf *
  [23]  50-user.conf *
  [24]  51-local.conf *
  [25]  57-dejavu-sans-mono.conf
  [26]  57-dejavu-sans.conf
  [27]  57-dejavu-serif.conf
  [28]  60-latin.conf *
  [29]  60-liberation.conf *
  [30]  65-fonts-persian.conf *
  [31]  65-khmer.conf
  [32]  65-nonlatin.conf *
  [33]  69-unifont.conf *
  [34]  70-no-bitmaps.conf *
  [35]  70-yes-bitmaps.conf
  [36]  80-delicious.conf *
  [37]  90-roboto-regular.conf
  [38]  90-synthetic.conf *
  [39]  99pdftoopvp.conf
-----

Lo and behold, it's not showing a bitmap font now:

-----
# fc-match helvetica
n019003l.pfb: "Nimbus Sans L" "Regular"
-----

I don't know if the font mapping is correct, but I refreshed a page on
bugs.g.o and I can print to PDF without the blocky fonts! So I don't
really care if the font mapping is correct now. I can print again! :-)

Dan


Reply via email to