From 61a1a88940f808f0f1184c6afdfbf025f21c1527 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 7 Feb 2023 13:47:04 -0700 Subject: [PATCH] [hb-ft] Fix --font-grade --- src/hb-ft.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ft.cc b/src/hb-ft.cc index af15c9e63..5ca08d0a6 100644 --- a/src/hb-ft.cc +++ b/src/hb-ft.cc @@ -881,7 +881,7 @@ hb_ft_draw_glyph (hb_font_t *font, if (x_shift || y_shift) { auto &outline = ft_face->glyph->outline; - for (auto &point : hb_iter (outline.points, outline.contours[outline.n_contours - 1])) + for (auto &point : hb_iter (outline.points, outline.contours[outline.n_contours - 1] + 1)) { point.x += x_shift; point.y += y_shift;