Skip to content

Commit

Permalink
fix basic layout
Browse files Browse the repository at this point in the history
(cherry picked from commit 132cb7e)
  • Loading branch information
nulano committed Sep 1, 2020
1 parent 5d57261 commit ea582a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/_imagingft.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ea582a1

Please sign in to comment.