From 1b867530314e8efe3a67377ac25b04ca2e71e90e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 5 Dec 2022 11:44:52 -0700 Subject: [PATCH] [hb-subset] Support -u, -g, -t For --unicodes, --gids, --text. --- util/hb-subset.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/hb-subset.cc b/util/hb-subset.cc index 171f27c8c..0c545ddc5 100644 --- a/util/hb-subset.cc +++ b/util/hb-subset.cc @@ -840,7 +840,7 @@ subset_main_t::add_options () GOptionEntry glyphset_entries[] = { - {"gids", 0, 0, G_OPTION_ARG_CALLBACK, (gpointer) &parse_gids, + {"gids", 'g', 0, G_OPTION_ARG_CALLBACK, (gpointer) &parse_gids, "Specify glyph IDs or ranges to include in the subset.\n" " " "Use --gids-=... to subtract codepoints from the current set.", "list of glyph indices/ranges or *"}, @@ -854,13 +854,13 @@ subset_main_t::add_options () {"glyphs-file", 0, 0, G_OPTION_ARG_CALLBACK, (gpointer) &parse_file_for, "Specify file to read glyph names from", "filename"}, - {"text", 0, 0, G_OPTION_ARG_CALLBACK, (gpointer) &parse_text, "Specify text to include in the subset. Use --text-=... to subtract codepoints from the current set.", "string"}, + {"text", 't', 0, G_OPTION_ARG_CALLBACK, (gpointer) &parse_text, "Specify text to include in the subset. Use --text-=... to subtract codepoints from the current set.", "string"}, {"text-", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_CALLBACK, (gpointer) &parse_text, "Specify text to remove from the subset", "string"}, {"text+", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_CALLBACK, (gpointer) &parse_text, "Specify text to include in the subset", "string"}, {"text-file", 0, 0, G_OPTION_ARG_CALLBACK, (gpointer) &parse_file_for,"Specify file to read text from", "filename"}, - {"unicodes", 0, 0, G_OPTION_ARG_CALLBACK, (gpointer) &parse_unicodes, + {"unicodes", 'u', 0, G_OPTION_ARG_CALLBACK, (gpointer) &parse_unicodes, "Specify Unicode codepoints or ranges to include in the subset. Use * to include all codepoints.\n" " " "--unicodes-=... can be used to subtract codepoints from the current set.\n"