mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-29 09:34:05 +01:00
[util] Add brief --help descriptions
Part of https://github.com/harfbuzz/harfbuzz/issues/5208
This commit is contained in:
1 parent
3d3f241941
commit
59001aa952
4 files changed
+6
No files matched your search
@@ -67,6 +67,7 @@ struct info_t :
|
||||
void add_options ()
|
||||
{
|
||||
set_summary ("Query font information.");
|
||||
set_description ("Queries font file for various information. If no query option is specified, --show-all is assumed.");
|
||||
|
||||
font_options_t::add_options (this);
|
||||
|
||||
|
||||
@@ -859,6 +859,7 @@ void
|
||||
subset_main_t::add_options ()
|
||||
{
|
||||
set_summary ("Subset font to specification.");
|
||||
set_description ("Subsets font file to a specified set of glyphs, Unicode codepoints, or text, design-space limiting, and other reductions.");
|
||||
|
||||
face_options_t::add_options (this);
|
||||
|
||||
|
||||
@@ -37,6 +37,8 @@ struct shape_output_t : output_options_t<>
|
||||
void add_options (option_parser_t *parser)
|
||||
{
|
||||
parser->set_summary ("Shape text with given font.");
|
||||
parser->set_description ("Shows results of shaping text with a given font in textual or JSON format.");
|
||||
|
||||
output_options_t::add_options (parser, hb_buffer_serialize_list_formats ());
|
||||
format.add_options (parser);
|
||||
}
|
||||
|
||||
@@ -41,6 +41,8 @@ struct view_cairo_t : view_options_t, output_options_t<>
|
||||
void add_options (option_parser_t *parser)
|
||||
{
|
||||
parser->set_summary ("View text with given font.");
|
||||
parser->set_description ("Shows image of rendering text with a given font in various formats.");
|
||||
|
||||
view_options_t::add_options (parser);
|
||||
output_options_t::add_options (parser, helper_cairo_supported_formats);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user