[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. 22
      util/hb-subset.cc

@ -1024,15 +1024,19 @@ subset_main_t::add_options ()
{"drop-tables", 0, 0, G_OPTION_ARG_CALLBACK, (gpointer) &parse_drop_tables, "Drop the specified tables. Use --drop-tables-=... to subtract from the current set.", "list of string table tags or *"}, {"drop-tables", 0, 0, G_OPTION_ARG_CALLBACK, (gpointer) &parse_drop_tables, "Drop the specified tables. Use --drop-tables-=... to subtract from the current set.", "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 *"}, {"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 *"}, {"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 #ifndef HB_NO_VAR
{"instance", 0, 0, G_OPTION_ARG_CALLBACK, (gpointer) &parse_instance, {"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\n" "(Partially|Fully) Instantiate a variable font. A location consists of the tag "
"number or the literal string 'drop'\n" "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\""
"For example: --instance=\"wdth=100 wght=200\" or --instance=\"wdth=drop\"\n" #ifndef HB_EXPERIMENTAL_API
" " "\n\nNote: currently only full instancing is supported unless this util has been compiled with experimental api enabled."
"Note: currently only fully instancing is supported\n", #endif
"list of comma separated axis-locations"}, ,
"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 #endif
{nullptr} {nullptr}
}; };

Loading…
Cancel
Save