[test] Minor save glyph_count

This commit is contained in:
Behdad Esfahbod 2023-01-12 18:58:07 -07:00
parent cca0ed9bcd
commit b783967242
1 changed files with 2 additions and 1 deletions

View File

@ -643,7 +643,8 @@ main (int argc, char **argv)
} }
hb_face_t *face = hb_test_open_font_file (TEST_GLYPHS); hb_face_t *face = hb_test_open_font_file (TEST_GLYPHS);
for (unsigned int i = 1; i < hb_face_get_glyph_count (face); i++) unsigned glyph_count = hb_face_get_glyph_count (face);
for (unsigned int i = 1; i < glyph_count; i++)
{ {
char buf[20]; char buf[20];
snprintf (buf, 20, "test-%u", i); snprintf (buf, 20, "test-%u", i);