Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I was reading this here blog entry and the page was driving my eyes NUTS.

Seems like it's the fault of Firefox on Ubuntu 12.04. It's had this problem before, it seems but it should be fixed.


Firefox making my eyes bleed:

firefox


Chrome doing the Right Thing:

chrome


Firefox doing the Right Thing at work on the same monitor:

firefoxwork

Is there anything I should be doing to make Firefox behave? Or is this strictly a bug?

share|improve this question

1 Answer 1

Firefox does not seem to read the GTK configuration, but it does read and honor your ~/.fonts.conf which basically just contains the font configuration, including the sub-pixel order.

This is derived from my own .fonts.conf (which is derived from some blog post from somewhere around 2005...or so, no idea), what you most likely want to change is the rgba value (sub-pixel order) to match your LCD and maybe the antialias value.

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
    <match target="font">
        <edit mode="assign" name="autohint">
            <bool>false</bool>
        </edit>
    </match>
    <match target="font">
        <edit mode="assign" name="rgba">
            <const>rgb</const>
        </edit>
    </match>
    <match target="font">
        <edit mode="assign" name="hinting">
            <bool>true</bool>
        </edit>
    </match>
    <match target="font">
        <edit mode="assign" name="hintstyle">
            <const>hintfull</const>
        </edit>
    </match>
    <match target="font">
        <edit mode="assign" name="antialias">
            <bool>true</bool>
        </edit>
    </match>
</fontconfig>

The Arch Wiki also contains a lot of information about this.

share|improve this answer
    
OK… now neither of my systems has a .fonts.conf, but it looks OK at work on a similar system. I'll try this out later. Moar testing! –  MikeyB Jun 12 '13 at 14:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.