Change direction of y offset in calculating size

This commit is contained in:
Andrew Murray 2019-05-23 20:54:48 +10:00
parent be1b551bfc
commit fb38296230
2 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -686,8 +686,8 @@ font_getsize(FontObject* self, PyObject* args)
x_max -= offset;
}
bbox.yMax -= glyph_info[i].y_offset;
bbox.yMin -= glyph_info[i].y_offset;
bbox.yMax += glyph_info[i].y_offset;
bbox.yMin += glyph_info[i].y_offset;
if (bbox.yMax > y_max)
y_max = bbox.yMax;
if (bbox.yMin < y_min)