Soeren D. Schulze dixit:

> I can confirm this.  You need both full hinting in debconf as well as having
> FREETYPE_PROPERTIES set.  Having only one of them does not do anything.

I’ve arrived here from #867657 via Planet Debian. There, another article
https://www.freetype.org/freetype2/docs/subpixel-hinting.html was linked
which indicates that this has something to do with subpixel hinting.

Indeed, back when this change was forced upon us, I found out that I had
to always disable subpixel hinting, but I do not need to change the in‐
terpreter version.

I’ve got in my ~/.config/fontconfig/fonts.conf (former ~/.fonts.conf):

<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
        <!-- configure system-wide/default hinting, YMMV -->
        <match target="font">
                <edit name="autohint" mode="assign">
                        <bool>true</bool>
                </edit>
                <edit name="hintstyle" mode="assign">
                        <const>hintfull</const>
                </edit>
                <!-- adjust to match your subpixel hinting and lcdfilter modes 
-->
                <edit name="rgba" mode="assign">
                        <const>none</const>
                </edit>
                <!-- subpixel: cf. http://www.lagom.nl/lcd-test/subpixel.php -->
                <!-- lcdfilter: cf. http://www.spasche.net/files/lcdfiltering/ 
-->
        </match>
[…]

This disables subpixel hinting and reverts back to greyscale hinting.
I need this anyway (because otherwise, fonts get coloured blurs that
are noticeable on a Thinkpad X61 even when the correct mode is used),
it fixes the bad rendering issue for me too though.

Then it enables the autohinter by default, with hintfull as default
hinting mode.

After this, fonts.conf contains per-font changes (to either switch to
hintslight or disable the autohinter for individual fonts):

[…]
        <match target="font">
                <test qual="any" name="family" ignore-blanks="true">
                        <string>Gentium</string>
                </test>
                <edit name="autohint" mode="assign">
                        <bool>true</bool>
                </edit>
                <edit name="hintstyle" mode="assign">
                        <const>hintslight</const>
                </edit>
        </match>
[…]
        <match target="font">
                <test qual="any" name="family" ignore-blanks="true">
                        <string>Inconsolatazi4varl_qu</string>
                </test>
                <edit name="autohint" mode="assign">
                        <bool>false</bool>
                </edit>
        </match>
[…]
</fontconfig>


Perhaps this helps someone. Full config at:
 http://www.mirbsd.org/music/free/resources/dot.fonts.conf

Please post whether, with this, you can get by withOUT setting
FREETYPE_PROPERTIES at all (or unsetting it if you had it set).

Good luck,
//mirabilos
-- 
15:39⎜«mika:#grml» mira|AO: "mit XFree86® wär’ das nicht passiert" - muhaha
15:48⎜<thkoehler:#grml> also warum machen die xorg Jungs eigentlich alles
kaputt? :)    15:49⎜<novoid:#grml> thkoehler: weil sie als Kinder nie den
gebauten Turm selber umschmeissen durften?      -- ~/.Xmodmap wonders…

Reply via email to