fixed api test test-ot-glyphname

This commit is contained in:
blueshade7 2019-11-20 10:42:50 -08:00 committed by Behdad Esfahbod
parent 7a4745ba8d
commit ed94e41065
1 changed files with 2 additions and 6 deletions

View File

@ -44,10 +44,8 @@ test_one_glyph (hb_font_t *font, hb_codepoint_t gid, const char *name)
static void
test_standard_names (void)
{
hb_blob_t *blob = hb_blob_create_from_file ("fonts/MathTestFontFull.otf");
hb_face_t *face = hb_face_create (blob, 0 /* first face */);
hb_face_t *face = hb_test_open_font_file ("fonts/MathTestFontFull.otf");
hb_font_t *font = hb_font_create (face);
hb_blob_destroy (blob);
test_one_glyph (font, 0, ".notdef");
test_one_glyph (font, 27, "Z");
@ -59,10 +57,8 @@ test_standard_names (void)
static void
test_non_standard_names (void)
{
hb_blob_t *blob = hb_blob_create_from_file ("fonts/MathTestFontFull.otf");
hb_face_t *face = hb_face_create (blob, 0 /* first face */);
hb_face_t *face = hb_test_open_font_file ("fonts/MathTestFontFull.otf");
hb_font_t *font = hb_font_create (face);
hb_blob_destroy (blob);
test_one_glyph (font, 46, "arrowdblright");
test_one_glyph (font, 138, "uni21E7_size5");