[instancer] Update help message for --instance.

Remove note about partial instancing not being supported. Add --variations flag as an alternate name for --instance. This matches other hb utils.
pull/4476/head
Garret Rieger 1 year ago committed by Behdad Esfahbod
parent 9d0bc085ee
commit 7b46d772c4
  1. 20
      util/hb-subset.cc

@ -1025,14 +1025,18 @@ subset_main_t::add_options ()
{"drop-tables+", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_CALLBACK, (gpointer) &parse_drop_tables, "Drop the specified tables.", "list of string table tags or *"},
{"drop-tables-", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_CALLBACK, (gpointer) &parse_drop_tables, "Drop the specified tables.", "list of string table tags or *"},
#ifndef HB_NO_VAR
{"instance", 0, 0, G_OPTION_ARG_CALLBACK, (gpointer) &parse_instance,
"(Partially|Fully) Instantiate a variable font. A location consists of the tag of a variation axis, followed by '=', followed by a\n"
"number or the literal string 'drop'\n"
" "
"For example: --instance=\"wdth=100 wght=200\" or --instance=\"wdth=drop\"\n"
" "
"Note: currently only fully instancing is supported\n",
"list of comma separated axis-locations"},
{"variations", 0, 0, G_OPTION_ARG_CALLBACK, (gpointer) &parse_instance,
"(Partially|Fully) Instantiate a variable font. A location consists of the tag "
"of a variation axis, followed by '=', followed by a number or the literal "
"string 'drop'. For example: --variations=\"wdth=100 wght=200\" or --instance=\"wdth=drop\""
#ifndef HB_EXPERIMENTAL_API
"\n\nNote: currently only full instancing is supported unless this util has been compiled with experimental api enabled."
#endif
,
"list of comma separated axis-locations."
},
{"instance", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_CALLBACK, (gpointer) &parse_instance,
"Alias for --variations.", "list of comma separated axis-locations"},
#endif
{nullptr}
};

Loading…
Cancel
Save