OSDN Git Service

Saw clearing artifacts along the tops of characters with the Rockwell and "DIN Conden...
authorEric Branlund <ebranlund@fastmail.com>
Fri, 30 Aug 2019 22:56:12 +0000 (15:56 -0700)
committerEric Branlund <ebranlund@fastmail.com>
Fri, 30 Aug 2019 22:56:12 +0000 (15:56 -0700)
commitcaa12ff15a397d479b4bcd295446bab0e2d4b1ce
tree8888c2f2c2b2e9fc783be82de3b09590496bf524
parentd724f464678a02b55903c0b08ba43bc613297038
Saw clearing artifacts along the tops of characters with the Rockwell and "DIN Condensed" fonts in 10.14.  In both, the top of the bounding box for "@" relative to the baseline is above the reported ascent for the font.  To avoid the clearing artifacts, get the overall bounding box for the glyphs examined in updateGlyphInfo() and override the reported ascent and descent if the bounding box goes beyond that range.  There are still clearing artifacts with the "Snell Roundhand" and Zapfino fonts in 10.14, but those artifacts are on the righthand side of "@" and not along the top.
src/main-cocoa.m