[glyf] minor

This commit is contained in:
Ebrahim Byagowi 2019-10-21 14:11:27 +03:30
parent 0b559d750f
commit fddf79fc37
2 changed files with 5 additions and 5 deletions

View File

@ -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<contour_point_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;
}

View File

@ -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);
}