[942114 views]

[]

[toggle ads]

Odi's astoundingly incomplete notes

New entries | Code

The ugly D of the Georgia typeface

Does the uppercase letter D of the Georgia font look ugly on your screen? In certain font sizes only maybe? Then anti-aliasing is to blame. Here are some letters in the Georgia typeface: DDDD
ugly rendering
On Linux you can disable anti-aliasing for this font, by adding a fontconfig script:
<match target="font">
  <test name="family" qual="any">
    <string>Georgia</string>
  </test>
  <edit name="antialias" mode="assign">
    <bool>false</bool>
  </edit>
</match>
After that the font is no longer anti-aliased but the D doesn't look ugly:
without AA

Alternatively replace Georgia with Times New Roman completely:
<match target="pattern">
    <test name="family" qual="any" >
        <string>Georgia</string>
    </test>
    <edit name="family" mode="assign">
        <string>Times New Roman</string>
    </edit>
</match>
which renders like so:


Next I'm going to tackle the problem of the cut off left slant of the upper case W.

posted on 2011-08-09 14:44 CEST in Code | 0 comments | permalink