You are not logged in.

#1 2010-02-16 02:20:21

ES
Member
Registered: 2009-03-13
Posts: 21

[Solved] Japanese fonts and antialiasing

Hi,

I have some problems to enable anti aliasing with some of the japanese fonts found in the aur.
For the ttf-kochi-substitute and ttf-sazanami the anti aliasing seems to work only for only big font size (around >16px).
I found no particular settings for these fonts in /etc/fonts, and other fonts like ttf-vlgothic and otf-takao have anti aliasing for all sizes.

Any clues on that to enable anti aliasing for ttf-kochi-substitute and ttf-sazanami?

Thanks,
Eric

Just in case, my ~/.fonts.conf:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
    <alias>
        <family>serif</family>
        <prefer>
            <family>Bitstream Vera Serif</family>
            <family>DejaVu Serif</family>
            <family>TakaoMincho</family>
        </prefer>
    </alias>
    <alias>
        <family>sans-serif</family>
        <prefer>
            <family>Bitstream Vera Sans</family>
            <family>DejaVu Sans</family>
            <family>TakaoGothic</family>
        </prefer>
    </alias>
    <alias>
        <family>monospace</family>
        <prefer>
            <family>DejaVu Sans Mono</family>
            <family>TakaoPGothic</family>
            <family>Bitstream Vera Sans Mono</family>
        </prefer>
    </alias>
    <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>
    <dir>~/.fonts</dir>
</fontconfig>

Last edited by ES (2010-02-16 07:32:59)

Offline

#2 2010-02-16 05:27:45

dkdk
Member
From: Japan
Registered: 2009-02-16
Posts: 3

Re: [Solved] Japanese fonts and antialiasing

Try this code.

    <match target="font">
        <edit mode="assign" name="embeddedbitmap" >
            <bool>false</bool>
        </edit>
    </match>

Offline

#3 2010-02-16 07:32:34

ES
Member
Registered: 2009-03-13
Posts: 21

Re: [Solved] Japanese fonts and antialiasing

Thanks! It worked perfectly.

Eric

Offline

#4 2010-05-05 09:19:54

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [Solved] Japanese fonts and antialiasing

Presumably, this is better:

    <!-- From http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/fontconfig/current/SOURCES/26-mdv-no-embeddedbitmap.conf?view=markup
    Disable embedded bitmaps unless for very small pixel sizes. -->
    <match target="font">
        <test name="pixelsize" compare="more">
            <double>16</double>
        </test>
        <edit name="embeddedbitmap" mode="assign">
            <bool>false</bool>
        </edit>
    </match>

Offline

Board footer

Powered by FluxBB