mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-28 10:56:18 +03:00
add missing if brackets
This commit is contained in:
parent
64e7d72ee8
commit
1e31de1824
|
@ -564,10 +564,11 @@ text_layout_fallback(PyObject* string, FontObject* self, const char* dir, PyObje
|
||||||
if (kerning && last_index && (*glyph_info)[i].index) {
|
if (kerning && last_index && (*glyph_info)[i].index) {
|
||||||
FT_Vector delta;
|
FT_Vector delta;
|
||||||
if (FT_Get_Kerning(self->face, last_index, (*glyph_info)[i].index,
|
if (FT_Get_Kerning(self->face, last_index, (*glyph_info)[i].index,
|
||||||
ft_kerning_default,&delta) == 0)
|
ft_kerning_default,&delta) == 0) {
|
||||||
(*glyph_info)[i-1].x_advance += PIXEL(delta.x);
|
(*glyph_info)[i-1].x_advance += PIXEL(delta.x);
|
||||||
(*glyph_info)[i-1].y_advance += PIXEL(delta.y);
|
(*glyph_info)[i-1].y_advance += PIXEL(delta.y);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
(*glyph_info)[i].x_advance = glyph->metrics.horiAdvance;
|
(*glyph_info)[i].x_advance = glyph->metrics.horiAdvance;
|
||||||
(*glyph_info)[i].y_advance = glyph->metrics.vertAdvance;
|
(*glyph_info)[i].y_advance = glyph->metrics.vertAdvance;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user