This commit is contained in:
Behdad Esfahbod 2012-11-15 18:39:23 -08:00
parent e05a999495
commit 75da37dcb1
1 changed files with 12 additions and 12 deletions

View File

@ -74,18 +74,18 @@ struct shape_closure_consumer_t : option_group_t
/* Print it out! */ /* Print it out! */
bool first = true; bool first = true;
for (hb_codepoint_t i = -1; hb_set_next (glyphs, &i);) for (hb_codepoint_t i = -1; hb_set_next (glyphs, &i);)
if (hb_set_has (glyphs, i)) { {
if (first) if (first)
first = false; first = false;
else else
printf (" "); printf (" ");
char glyph_name[32]; char glyph_name[32];
if (show_glyph_names) { if (show_glyph_names) {
hb_font_get_glyph_name (font, i, glyph_name, sizeof (glyph_name)); hb_font_get_glyph_name (font, i, glyph_name, sizeof (glyph_name));
printf ("%s", glyph_name); printf ("%s", glyph_name);
} else } else
printf ("%u", i); printf ("%u", i);
} }
} }
void finish (const font_options_t *font_opts) void finish (const font_options_t *font_opts)
{ {