Main BLOGGER
Google
WWW THIS BLOG
Monday, August 04, 2008
 
Re: Ubuntu font problem
Re: Ugly fonts on UTF-8 encoded Chinese webpages, etc.
I just now solved this problem!

You should (don't have to) install the firefly font. Google it. It's
cleaner and does look better.
Then you need to disable antialiasing.

I had to create a file called .fonts.conf and place it in my home
directory.

Here is what the file looks like:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Disable font alias for Chinese <= 16px -->
<match target="font">
<test qual="any" name="family" compare="eq">
<string>AR PL Mingti2L Big5</string>
<string>AR PL SungtiL Big5</string>
<string>AR PL New Sung</string>
<string>AR PL ShanHeiSun Uni</string>
<string>AR PL ZenKai Uni</string>
<string>Ming(ISO10646)</string>
<string>MingLiu</string>
<string>PMingLiu</string>
<string>Kochi Mincho</string>
<string>Baekmuk Dotum</string>
</test>
<test name="pixelsize" compare="less_eq">
<double>16</double>
</test>
<edit name="antialias">
<bool>false</bool>
</edit>
<edit name="hinting">
<bool>true</bool>
</edit>
</match>
<alias>
<family>serif</family>
<prefer>
<family>Bitstream Vera Serif</family>
<family>Times New Roman</family>
<family>Times</family>
<family>AR PL New Sung</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL Mingti2L Big5</family>
<family>AR PL SungtiL GB</family>
<family>SimSun</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Bitstream Vera Sans</family>
<family>Arial</family>
<family>Verdana</family>
<family>Helvetica</family>
<family>AR PL New Sung</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL kaitiM Big5</family>
<family>AR PL kaitiM GB</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Bitstream Vera Sans Mono</family>
<family>Courier New</family>
<family>Courier</family>
<family>AR PL New Sung</family>
<family>AR PL ShanHeiSun Uni</family>
</prefer>
</alias>
</fontconfig>


The fonts are no longer blurry and mismatched. This worked for the whole
system, firefox, everything. Let me know if you have any problems.


On Mon, 04 Aug 2008 16:05:03 -0400, Pu Liu <pop.liu@gmail.com> wrote:

> in home directory, create a hidden file .fonts.conf
>
> with the following content
>
>
> <?xml version="1.0"?>
> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
> <fontconfig>
> <!-- Disable font alias for Chinese <= 16px -->
> <match target="font">
> <test qual="any" name="family" compare="eq">
> <string>AR PL New Sung</string>
> <string>AR PL ShanHeiSun Uni</string>
> <string>AR PL ZenKai Uni</string>
> <string>Ming(ISO10646)</string>
> <string>MingLiu</string>
> <string>PMingLiu</string>
> <string>Kochi Mincho</string>
> <string>Baekmuk Dotum</string>
> </test>
> <test name="pixelsize" compare="less_eq">
> <double>16</double>
> </test>
> <edit name="antialias">
> <bool>false</bool>
> </edit>
> <edit name="hinting">
> <bool>true</bool>
> </edit>
> </match>
> <alias>
> <family>serif</family>
> <prefer>
> <family>Bitstream Vera Serif</family>
> <family>Times New Roman</family>
> <family>Times</family>
> <family>AR PL New Sung</family>
> <family>AR PL ShanHeiSun Uni</family>
> <family>AR PL Mingti2L Big5</family>
> <family>AR PL SungtiL GB</family>
> <family>SimSun</family>
> </prefer>
> </alias>
> <alias>
> <family>sans-serif</family>
> <prefer>
> <family>Bitstream Vera Sans</family>
> <family>Arial</family>
> <family>Verdana</family>
> <family>Helvetica</family>
> <family>AR PL New Sung</family>
> <family>AR PL ShanHeiSun Uni</family>
> <family>AR PL kaitiM Big5</family>
> <family>AR PL kaitiM GB</family>
> </prefer>
> </alias>
> <alias>
> <family>monospace</family>
> <prefer>
> <family>Bitstream Vera Sans Mono</family>
> <family>Courier New</family>
> <family>Courier</family>
> <family>AR PL New Sung</family>
> <family>AR PL ShanHeiSun Uni</family>
> </prefer>
> </alias>
> </fontconfig>
>
>
> On Sun, Aug 3, 2008 at 10:07 AM, yuan <pop.liu@gmail.com> wrote:
>
>> a. subpixel rendering:
>> 1. go to a terminal and type:
>>
>> sudo dpkg-reconfigure fontconfig-config
>> Then select "Autohinter", "Always" and "No" when prompted.
>>
>> 2.
>> Code:
>> sudo dpkg-reconfigure fontconfig
>>
>> 3. restart X and rendering is beautiful!
>>
>>
>> b. System>Prefs>Appearance>Fonts
>>
>> LCD smoothing, then details. Hinting - Slight.
>>
>>
>
>

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/




<< Home

Powered by Blogger

Google
WWW THIS BLOG