Behdad Esfahbod
62fb102184
[util] Move add_main_options() invocation
3 years ago
Behdad Esfahbod
7d2e9164ab
[util] Move text options into text_options_t
...
Remove now empty options.cc.
3 years ago
Behdad Esfahbod
93bc62e9b2
[util] Move output options into output-options.hh
3 years ago
Behdad Esfahbod
5545eea7e5
[util] Remove main_font_text_t class, use bare function
3 years ago
Behdad Esfahbod
58c223357b
[util] Move face/font options into face/font-options.hh
3 years ago
Behdad Esfahbod
6edd50ae7f
[util] Move option_parser_t code into options.hh
3 years ago
Behdad Esfahbod
798bb89c96
[util] Move shape format options into shape-format.hh
3 years ago
Behdad Esfahbod
c3599fded7
[util] Move shape options into shape-options.hh
3 years ago
Behdad Esfahbod
cfb2d6ad9e
[util] Move view options into view-options.hh
3 years ago
Behdad Esfahbod
167f58a2ca
[util] Move subset options into subset-options.hh
3 years ago
Behdad Esfahbod
869e20e09f
[util] separate face options from font options
3 years ago
Behdad Esfahbod
71440dbd90
[util] Move font-size and upem to be extern variables
3 years ago
Behdad Esfahbod
463411a1de
[util] Remove unused option_group_t
3 years ago
Behdad Esfahbod
8588173ee6
[util] Rework post_parse() handling
3 years ago
Behdad Esfahbod
3362b48f5a
[util] Templatize add_group logic
3 years ago
Behdad Esfahbod
fe90fbeba3
[util] Remove unused pre_parse callback logic
3 years ago
Behdad Esfahbod
09e4d7dd30
[util] Simplify output_options_t
3 years ago
Behdad Esfahbod
e109f9a6f9
[util] Collect cmdline arg options outside of constructor
3 years ago
Behdad Esfahbod
e57dd66889
[util] Initialize struct members inline
3 years ago
Behdad Esfahbod
05cf81283b
[util/hb-shape] Fix use of EOF as end-of-line
...
EOF is -1, which was being treated as a valid char (255).
Use int instead.
3 years ago
Garret Rieger
f9d8e4a976
[subset] switch ..._set_flags to not take a mask.
3 years ago
Garret Rieger
3d534b146c
[subset] convert subset input flags into bit flags.
...
Store the flags in a bit set. Updates the public api to work with the bit set directly.
3 years ago
Behdad Esfahbod
d7541f7b55
[util/hb-shape] Free cached resources on termination
3 years ago
Behdad Esfahbod
ad03f34df7
[util/hb-shape] Cache blob/face in batch mode
3 years ago
Behdad Esfahbod
5dae8297bb
[util] Minor followup to https://github.com/harfbuzz/harfbuzz/pull/3083
3 years ago
Khaled Hosny
50379fbb15
[util] Don’t split text at new lines in batch mode
...
In batch mode (which is used for testing) we are probably not interested
in splitting text into lines as we could have split the string into
different tests. This fixes a bunch of AOTS tests that use newlines as
input.
3 years ago
Garret Rieger
1bb00cd54b
[subset] add num-iterations flag to util/hb-subset.
4 years ago
Khaled Hosny
5091ea7e24
Merge pull request #2733 from astiob/buffer-context-doc
...
[docs] Describe buffer context applicability more explicitly
4 years ago
Behdad Esfahbod
069c5de9f8
[util/hb-view] Add --font-extents
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/2402
5 years ago
Evgeniy Reizner
b79ceac3c6
Prefer UINT_MAX instead of uint overflow.
...
Also, prefer HB_FEATURE_GLOBAL_START and HB_FEATURE_GLOBAL_END.
5 years ago
Ebrahim Byagowi
a0b4ac4dce
Turn 8 spaces to tab across the project
...
According to the current code style of the project
5 years ago
Bruce Mitchener
659eeddb2d
Use C++11 override keyword.
6 years ago
Garret Rieger
0ff3618c2d
[subset] Use hb_subset_input_t inside of subset_options_t so that input defaults are shared between the library and cli.
6 years ago
Garret Rieger
67064294a0
[subset] Add drop-tables option to hb-subset util.
6 years ago
Qunxin Liu
e501ea143d
[subset] Subset name table step 3, add --nameids option to guide the
...
selection of which name records to keep in the subset method.
6 years ago
Garret Rieger
490d52f908
[subset] Add retain-gids option to hb-subset executable.
6 years ago
Behdad Esfahbod
60022ecced
Fix -Wcast-function-type warnings in util/ with gcc 4.8
6 years ago
Ebrahim Byagowi
e412008599
Remove redundant void from C++ sources ( #1486 )
6 years ago
Behdad Esfahbod
3f8e7a98d3
[util/hb-subset] Add --layout to keep GDEF/GSUB/GPOS
...
Will become default and option removed in the future.
6 years ago
Behdad Esfahbod
3ec2e4fa7b
[util] Don't terminate string after a a 0 in -u
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1361
6 years ago
Michiharu Ariza
d56e338a90
CFF1 no-desubroutinize + no-hinting
...
no-desubroutinize option is disabled for now
code cleanup (esp. CFF1 width handling)
bug fixes & renaming
6 years ago
Behdad Esfahbod
83a612739a
[util] Minor
6 years ago
Ebrahim Byagowi
f7a08cd41d
Fix extra semicolon issues and test that on CI ( #1330 )
6 years ago
Behdad Esfahbod
6131fb6283
[util] Don't close stdin/stdout
6 years ago
Khaled Hosny
cf92cb7e00
Use g_strdup instead of strdup
...
Cygwin does not seem to have strdup.
6 years ago
Behdad Esfahbod
1e8fdd285f
Remove HAVE_OT
...
We never tested compiling without it. Just kill it. We always build
our own shaper.
6 years ago
Behdad Esfahbod
e42cd58c99
Rename invisible_codepoint to invisible_glyph in API
...
Deleted recently added API:
hb_buffer_set_invisible_codepoint()
hb_buffer_get_invisible_codepoint()
hb-shape / hb-view --invisible-codepoint
New API:
hb_buffer_set_invisible_glyph()
hb_buffer_get_invisible_glyph()
hb-shape / hb-view --invisible-glyph
Fixes https://github.com/harfbuzz/harfbuzz/issues/1216
6 years ago
Behdad Esfahbod
71b65eb27d
Add API for setting invisible-codepoint
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1216
New API:
hb_buffer_set_invisible_codepoint()
hb_buffer_get_invisible_codepoint()
hb-shape / hb-view --invisible-codepoint
6 years ago
Behdad Esfahbod
b5285b3479
[util] Remove unneeded virtual
...
clang warning:
../../util/options.hh:72:13: warning: destination for this 'memset' call is a pointer to dynamic class
'option_parser_t'; vtable pointer will be overwritten [-Wdynamic-class-memaccess]
memset (this, 0, sizeof (*this));
~~~~~~ ^
../../util/options.hh:72:13: note: explicitly cast the pointer to silence this warning
memset (this, 0, sizeof (*this));
^
(void*)
6 years ago
Behdad Esfahbod
89ed040b21
[util] Fix more non-virtual-destructor warnings
6 years ago