Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Dec 2017 16:09:34 -0000 (UTC)
From:      Christian Weisgerber <naddy@mips.inka.de>
To:        freebsd-questions@freebsd.org
Subject:   Poor default fonts in Firefox
Message-ID:  <slrnp47hdu.189a.naddy@lorvorc.mips.inka.de>

next in thread | raw e-mail | index | archive | help
You install a new FreeBSD machine with a graphics display, install
the xorg and firefox ports on it, all default options, start browsing
the web... and you see that some sites (e.g. http://www.bbc.com/news)
are presented with pixelated fonts like something out of the 1990s.

What do you do?

This affects approximately everybody who uses FreeBSD on a desktop
or laptop, and it has for years.  What's the standard solution, and
why doesn't this work out of the box?

The underlying problem is that certain popular font names, "Helvetica",
"Times", "Courier", are mapped to ancient bitmap fonts by default, e.g.:
$ fc-match Helvetica
helvR12-ISO8859-1.pcf.gz: "Helvetica" "Regular"

My personal solution for the last few years has been to pinch
OpenBSD's etc/fonts/conf.avail/31-nonmst.conf file...
https://cvsweb.openbsd.org/cgi-bin/cvsweb/xenocara/dist/fontconfig/conf.d/31-nonmst.conf?rev=1.1&content-type=text/x-cvsweb-markup
... that maps these font names to DejaVu Sans/Serif/Sans Mono.
Still, that seems hackish and can hardly be expected from your
average user.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?slrnp47hdu.189a.naddy>