firefox printing very ugly

Anton Yuzhaninov citrin+bsd at
Thu Oct 20 15:38:11 UTC 2016

On 10/20/16 06:25, Matthias Apitz wrote:
> <body style="font-family:Geneva,Helvetica,Arial,sans-serif; font-size: 12px;">

In Firefox your can open Web Inspector (Ctrl+Shift+c), point to text and 
then view in Font tab which font is actually selected by Firefox for 
given text.

If it shows:
Foo Bar system
used as Helvetica

your can check via
$ fc-match 'Foo Bar'

which font file selected by fontconfig for this font name.

Is font shown by fc-match is TTF/OTF font?

If your don't have Geneva,Helvetica,Arial fonts installed your can 
create aliases in fontconfig xml config, see e. g.
I also use aliases for common font family names, but prefer other fonts.

> It looks fine in the firefox, but when I print it to a local file
> mozilla.pdf or it looks very ugly.

Is in "Print Preview" text rendered in readable form?

More information about the freebsd-questions mailing list