From fddf79fc3735274f0252596c28fff8034916b1ca Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Mon, 21 Oct 2019 14:11:27 +0330 Subject: [PATCH] [glyf] minor --- src/hb-ot-glyf-table.hh | 7 ++----- test/api/test-ot-face.c | 3 +++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hb-ot-glyf-table.hh b/src/hb-ot-glyf-table.hh index 5097fa295..f48f5cd38 100644 --- a/src/hb-ot-glyf-table.hh +++ b/src/hb-ot-glyf-table.hh @@ -1047,11 +1047,6 @@ struct glyf { #define PUSH_POINT(x, y) HB_STMT_START { coords->push (font->em_scalef_x (x)); coords->push (font->em_scalef_y (y)); } HB_STMT_END #define PUSH_POINT_CMD(c, x, y) HB_STMT_START { commands->push (c); PUSH_POINT(x, y); } HB_STMT_END -// if (cmd != ' ') commands.push (cmd); -// if (cmd == 'Z') return; -// coords.push (font->em_scalef_x (x)); -// coords.push (font->em_scalef_y (y)); -// } contour_point_vector_t all_points; if (unlikely (!get_points (font, gid, all_points))) return false; hb_array_t points = all_points.sub_array (0, all_points.length - 4); @@ -1099,6 +1094,8 @@ struct glyf commands->push ('Z'); contour_start += contour_length; } +#undef PUSH_POINT_CMD +#undef PUSH_POINT return true; } diff --git a/test/api/test-ot-face.c b/test/api/test-ot-face.c index 44a911682..838c290d1 100644 --- a/test/api/test-ot-face.c +++ b/test/api/test-ot-face.c @@ -109,6 +109,9 @@ test_face (hb_face_t *face, hb_ot_var_normalize_variations (face, NULL, 0, NULL, 0); hb_ot_var_normalize_coords (face, 0, NULL, NULL); + for (unsigned i = 0; i < 10; ++i) + hb_ot_glyph_path_destroy (hb_ot_glyph_path_create_from_font (font, 0)); + hb_set_destroy (set); hb_font_destroy (font); }