提交 d3f3690b 编写于 作者: B Behdad Esfahbod

hb-shape: In --no-glyph-names, output glyph number directly

Ie. write "86" instead of "gid86".
上级 088c1e27
...@@ -646,10 +646,13 @@ format_options_t::serialize (hb_buffer_t *buffer, ...@@ -646,10 +646,13 @@ format_options_t::serialize (hb_buffer_t *buffer,
g_string_append_c (gs, '|'); g_string_append_c (gs, '|');
char glyph_name[30]; char glyph_name[30];
if (show_glyph_names && !FT_Get_Glyph_Name (ft_face, info->codepoint, glyph_name, sizeof (glyph_name))) if (show_glyph_names) {
g_string_append_printf (gs, "%s", glyph_name); if (!FT_Get_Glyph_Name (ft_face, info->codepoint, glyph_name, sizeof (glyph_name)))
else g_string_append_printf (gs, "%s", glyph_name);
g_string_append_printf (gs, "gid%d", info->codepoint); else
g_string_append_printf (gs, "gid%d", info->codepoint);
} else
g_string_append_printf (gs, "%d", info->codepoint);
if (show_clusters) if (show_clusters)
g_string_append_printf (gs, "=%d", info->cluster); g_string_append_printf (gs, "=%d", info->cluster);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册