You are not logged in.

#1 2008-02-28 17:43:12

Atticus
Member
Registered: 2007-06-14
Posts: 52

Share your firefox font configurations (ie I need help)

hi all, I'm running Arch with just openbox and no dm and am having issues with firefox fonts.  I've gone through the LCD patches and applied them and the fonts themselves actually look pretty darned good.  The problem I'm having with firefox is either the fonts will be way too big, or way to small, depending on what page I'm looking at.  Many pages will have some fonts too big and some too small (like the headers will be too big and the normal text too small)

The font sizes are quite important to me because I'm a web developer and, while I want the fonts to look good, their actual sizes are the most important thing.  I must have reasonable parity with Windows/OSX when it comes to font size/spacing.

Here is my current userChrome.css file, which is not really doing a whole lot for me.

* {
    font-family: "Verdana" !important;
    font-size: 10pt !important;
}

input, select, textarea, table, tr, td, th{
    font-family: "Verdana" !important;
    font-size: 10pt !important;
}

Also, in my firefox preferences, the default is set to Verdana 10pt.  I have the ms core fonts installed too.

Here is my .fonts file

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">

<!-- the cathectic LCD tweaks, from linuxquestions.org,
 http://www.linuxquestions.org/questions/showthread.php?postid=1361098#post1361098 -->

<fontconfig>

<!-- Disable sub-pixel rendering.
 X detects it anyway, and if you set this as well, it just looks really horrible  -->
<match target="font" >
    <edit mode="assign" name="rgba" >
     <const>none</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>

<!-- The first part of the 'magic.'
 This makes the fonts start to look nice,
 but some of the shapes will be distorted, so hinting is needed still -->
 <match target="font" >
    <edit mode="assign" name="antialias">
     <bool>true</bool>
    </edit>
 </match>

<!-- Autohinter is not turned on automatically.
 Only disable this if you have recompiled Freetype with the bytecode interpreter,
 which is run automatically.<br />  -->
 <match target="pattern" >
    <edit mode="assign" name="autohint">
     <bool>true</bool>
    </edit>
 </match>
 <match target="font">
         <test name="weight" compare="more">
                 <const>medium</const>
         </test>
         <edit name="autohint" mode="assign">
                 <bool>false</bool>
         </edit>
 </match>
<!-- Helvetica is a non true type font, and will look bad.
 This replaces it with whatever is the default sans-serif font -->
 <match target="pattern" name="family" >
    <test name="family" qual="any" >
     <string>Helvetica</string>
    </test>
    <edit mode="assign" name="family" >
     <string>sans-serif</string>
    </edit>
 </match>
 <dir>~/.fonts</dir>
</fontconfig>

I don't remember where I got the .fonts code, I found it on some website or wiki (possibly arch or gentoo) and it seemed to work ok.

So what are you guys doing for your fonts?  I know this is a frequent issue/question on these forums, but I haven't found any definitive solution and I'd really like to.

Last edited by Atticus (2008-02-28 17:44:31)

Offline

Board footer

Powered by FluxBB