GNOME Bugzilla – Bug 704084
Unevenly hinted numerals in the bold font
Last modified: 2013-09-04 16:51:49 UTC
Hinted "Cantarell Bold 16px" has the digit 0 gain height and the digit 1 lose height, so numbers look uneven. Comment from Freetype dev: I looked at the example you gave for Cantarell Bold. This font defines an alignment zone (cap-height) from 694 to 701. Hstem hints whose tops fall within that range are aligned. Typically, this means that flat-topped glyphs are at 694 and round-topped glyphs overshoot to 701. The overshoot is controlled at sizes below the default 39.6 ppem. The problem with "zero" (and the other round-topped digits) is that the highest hstem is (588, 703). Since 703 is outside the zone, these glyphs are not aligned. This is a font bug. --- cantarell-fonts 0.0.13 freetype2 2.5.0.1
Created attachment 252979 [details] pango-view image This is still happening with cantarell-fonts 0.0.14, despite some commits that changed bold numerals. pango-view -t 1234567890 --font 'Cantarell Bold 11' Output attached.
Created attachment 253121 [details] pango rendering with 0.0.14 Can you provide your hinter settings? I'm not seeing the same results here.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE fontconfig SYSTEM "/etc/fonts/fonts.dtd"> <fontconfig> <match target="font"> <edit name="antialias" mode="append"><bool>true</bool></edit> <edit name="hintstyle" mode="assign"><const>hintfull</const></edit> <edit name="embeddedbitmap" mode="assign"><bool>false</bool></edit> <edit name="rgba" mode="append"><const>rgb</const></edit> <edit name="lcdfilter" mode="assign"><const>lcdlight</const></edit> </match> </fontconfig>
Oh, and the autohinter is off.
Confirmed with Freetype 2.5
Created attachment 254111 [details] [review] hints: sync HStem hints for numerals