Resolving aliased fonts and PDF export issues in Firefox on OpenIndiana

For a while now, I’ve tolerated aliased fonts issues in Firefox on OpenSolaris, and now in OpenIndiana without giving it too much thought (it for me being a comparatively minor annoyance). After making a few recent enquiries, it turns out this is due to the omission of certain non-redistributable fonts in OpenIndiana (e.g. Arial, Helvetica). In certain cases, OpenIndiana will substitute these with bitmapped fonts instead – and hey presto, crappy-looking webpages galore.

Thankfully, the easy workaround in comment 13 here did the trick, substituting bitmapped fonts for nice free alternatives:

https://defect.opensolaris.org/bz/show_bug.cgi?id=4605#c13

Similarly, the issue where certain webpages exported from Firefox as PDFs having heavily aliased text (e.g. from the Apple online store) is also resolved by this.

For reference, here are the contents of my ~/.fonts.conf file:


<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- ~/.fonts.conf for per-user font configuration -->
<fontconfig>
<alias binding="same">
        <family>Helvetica</family>
        <prefer><family>Liberation Sans</family></prefer>
</alias>

<alias binding="same">
        <family>Times</family>
        <prefer><family>Liberation Serif</family></prefer>
</alias>

<alias binding="same">
        <family>Georgia</family>
        <prefer><family>Liberation Serif</family></prefer>
</alias>

<alias binding="same">
        <family>Lucida</family>
        <prefer><family>Liberation Sans</family></prefer>
</alias>
</fontconfig>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s