Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Mar 2009 17:02:13 +0000 (UTC)
From:      naddy@mips.inka.de (Christian Weisgerber)
To:        freebsd-ports@freebsd.org
Subject:   Re: firefox and anti aliased printouts
Message-ID:  <gojnql$77s$1@lorvorc.mips.inka.de>
References:  <20090221180120.1529563b.lehmann@ans-netz.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Oliver Lehmann <lehmann@ans-netz.de> wrote:

> I don't know when this first occured (maybe when switching from firefox 2
> to 3) but all the printouts I'm doing from a webpage have their fonts
> displayed extremly grainy. It is hard to read anything on the printout.
> Any idea how I can get my firefox to print nice anti aliased fonts?

For web pages that want specific fonts, such as Arial, Firefox (or
maybe an underlying component, i.e., cairo or fontconfig) ends up
picking a bitmapped font.

There are several workarounds for this.

* Completely disable bitmapped fonts in fontconfig (70-no-bitmaps.conf).
  I'm told future versions of fontconfig will do this anyay.  Right now
  it has the disadvantage that if you use the default X11 fonts, it
  kills various non-Western scripts.  For instance, no more Japanese
  in Firefox.

* Do what OpenBSD did for its upcoming 4.5 release and gently force
  fontconfig to map Arial and friends to Bitstream fonts.
  http://www.openbsd.org/cgi-bin/cvsweb/xenocara/lib/fontconfig/conf.d/31-nonmst.conf?rev=1.2

* Install x11-fonts/liberation-fonts-ttf and write a fontconfig
  configuration file that maps Arial and friends to their Liberation
  equivalents.

* Install x11-fonts/webfonts to get the original Microsoft fonts
  if you don't mind being touched by evil.

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gojnql$77s$1>