[conf] Disable hinting when emboldening (#19904)

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.
This commit is contained in:
Mike FABIAN 2009-02-03 16:57:01 -05:00 committed by Behdad Esfahbod
parent fe00689cdd
commit 10609af4aa
1 changed files with 11 additions and 0 deletions

View File

@ -60,5 +60,16 @@
<edit name="weight" mode="assign"> <edit name="weight" mode="assign">
<const>bold</const> <const>bold</const>
</edit> </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> </match>
</fontconfig> </fontconfig>