Re: Re: Xft2, can I turn of hinting?

Keith Packard <[email protected]>
Newsgroups gmane.comp.xfree86.render
Message-ID <E16yLvd-0004nk-00@localhost>
Around 9 o'clock on Apr 18, David Reveman wrote:

> I added this to fonts.conf:
> 
> <match target="pattern">
>       <test qual="any" name="family">
>          <string>arial</string>
>       </test>
>       <edit name="hinting" mode="assign">
>          <bool>false</bool>
>       </edit>
>    </match>

This will only work if your pattern includes 'arial'; if you're pattern 
ends up matching 'arial' through some other route, you won't get hinting 
disabled.  The key here is to edit the output of the matching process 
rather than the input:

<match target="font">
        <test qual="any" name="family"><string>arial</string></test>
        <edit name="hinting" mode="assign"><bool>false</bool></edit>
</match>

Now any time your application uses 'arial', it will have hinting disabled.

Keith Packard        XFree86 Core Team        Compaq Cambridge Research Lab
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.