mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
fix basic layout
(cherry picked from commit 132cb7e5a6f892bba99d179d419afec754004e09)
This commit is contained in:
parent
5d57261b9c
commit
ea582a19e3
|
@ -585,7 +585,8 @@ text_layout_fallback(PyObject* string, FontObject* self, const char* dir, PyObje
|
|||
}
|
||||
|
||||
(*glyph_info)[i].x_advance = glyph->metrics.horiAdvance;
|
||||
(*glyph_info)[i].y_advance = glyph->metrics.vertAdvance;
|
||||
// y_advance is only used in ttb, which is not supported by basic layout
|
||||
(*glyph_info)[i].y_advance = 0;
|
||||
last_index = (*glyph_info)[i].index;
|
||||
(*glyph_info)[i].cluster = ch;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user