mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Change direction of y offset in calculating size
This commit is contained in:
parent
be1b551bfc
commit
fb38296230
Binary file not shown.
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user