]> git.wh0rd.org - fontconfig.git/commitdiff
[conf] Disable hinting when emboldening (#19904)
authorMike FABIAN <mfabian@suse.de>
Tue, 3 Feb 2009 21:57:01 +0000 (16:57 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Sun, 15 Feb 2009 21:40:23 +0000 (13:40 -0800)
Hinting will be done before Embolden in freetype2,
but in such case, Embolden will get wrong result
on some glyph contours after applying hinting.
Actually, hinting should be done after embolden, but we can't
fix it in current freetype2. So as a workaround, just turn off
hinting if we want to do embolden.

conf.d/90-synthetic.conf

index 63d9b891b3794b205482d7d173ad3cb410ff6863..6736423fca8000077462009f16671621ab018a06 100644 (file)
                <edit name="weight" mode="assign">
                        <const>bold</const>
                </edit>
+               <!--
+                Hinting will be done before Embolden in freetype2,
+                but in such case, Embolden will get wrong result
+                on some glyph contours after applying hinting.
+                Actually, hinting should be done after embolden, but we can't
+                fix it in current freetype2. So as a workaround, just turn off
+                hinting if we want to do embolden.
+               -->
+               <edit name="hintstyle" mode="assign">
+                       <const>hintnone</const>
+               </edit>
        </match>
 </fontconfig>