After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 704084 - Unevenly hinted numerals in the bold font
Unevenly hinted numerals in the bold font
Status: RESOLVED FIXED
Product: cantarell-fonts
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Cantarell fonts maintainer(s)
Cantarell fonts maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-07-12 12:15 UTC by Jan Alexander Steffens (heftig)
Modified: 2013-09-04 16:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
pango-view image (1.99 KB, image/png)
2013-08-24 05:47 UTC, Jan Alexander Steffens (heftig)
  Details
pango rendering with 0.0.14 (1.98 KB, image/png)
2013-08-26 11:53 UTC, Jakub Steiner
  Details
hints: sync HStem hints for numerals (62.09 KB, patch)
2013-09-04 16:48 UTC, Jakub Steiner
none Details | Review

Description Jan Alexander Steffens (heftig) 2013-07-12 12:15:13 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
Comment 1 Jan Alexander Steffens (heftig) 2013-08-24 05:47:17 UTC
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.
Comment 2 Jakub Steiner 2013-08-26 11:53:27 UTC
Created attachment 253121 [details]
pango rendering with 0.0.14

Can you provide your hinter settings? I'm not seeing the same results here.
Comment 3 Jan Alexander Steffens (heftig) 2013-08-26 11:55:31 UTC
<?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>
Comment 4 Jan Alexander Steffens (heftig) 2013-08-26 11:56:19 UTC
Oh, and the autohinter is off.
Comment 5 Jakub Steiner 2013-09-04 14:44:38 UTC
Confirmed with Freetype 2.5
Comment 6 Jakub Steiner 2013-09-04 16:48:56 UTC
Created attachment 254111 [details] [review]
hints: sync HStem hints for numerals