Behdad Esfahbod
6905f6fa60
[util/hb-subset] Use templated function to parse flags directly
4 years ago
Behdad Esfahbod
3e3e1801a5
[util] Small tweaks in --help output
4 years ago
Behdad Esfahbod
f3acb977ec
[test/shaping;util] Use ';' instead of ':' to separate test fields
...
Accept that in --batch mode. Also in batch mode don't send the 0th arg.
Related discussion: https://github.com/harfbuzz/harfbuzz/pull/3102
4 years ago
Behdad Esfahbod
b83fd3a564
[util] Refactor batch-processing code into batch.hh
4 years ago
Behdad Esfahbod
d92ee726ce
[util/hb-shape] Treat as single-paragraph text other than provided by a file
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3129
4 years ago
Behdad Esfahbod
7d2e9164ab
[util] Move text options into text_options_t
...
Remove now empty options.cc.
4 years ago
Behdad Esfahbod
93bc62e9b2
[util] Move output options into output-options.hh
4 years ago
Behdad Esfahbod
af9d2495dc
[util] Use inheritance for output_options_t
4 years ago
Behdad Esfahbod
9db0fd4821
[util] Don't show --output-format if no supported formats provided
4 years ago
Behdad Esfahbod
5545eea7e5
[util] Remove main_font_text_t class, use bare function
4 years ago
Behdad Esfahbod
58c223357b
[util] Move face/font options into face/font-options.hh
4 years ago
Behdad Esfahbod
6edd50ae7f
[util] Move option_parser_t code into options.hh
4 years ago
Behdad Esfahbod
798bb89c96
[util] Move shape format options into shape-format.hh
4 years ago
Behdad Esfahbod
c3599fded7
[util] Move shape options into shape-options.hh
4 years ago
Behdad Esfahbod
cfb2d6ad9e
[util] Move view options into view-options.hh
4 years ago
Behdad Esfahbod
167f58a2ca
[util] Move subset options into subset-options.hh
4 years ago
Behdad Esfahbod
370e961faf
[util/hb-subset] Use hb-subset.h public API instead of poking inside
...
Oops.
4 years ago
Behdad Esfahbod
4e97678ebb
[util] Use inheritence to embed inherent options of objects
4 years ago
Behdad Esfahbod
06d661803c
[util] Fix compiler error
...
../util/options.cc:588:3: error: narrowing conversion of ‘font_size_flags’ from ‘unsigned int’ to ‘gint {aka int}’ inside { } [-Werror=narrowing]
4 years ago
Behdad Esfahbod
c5337c43e9
[util] Fold helper-cairo.cc into helper-cairo.hh
4 years ago
Behdad Esfahbod
c329ce1000
[util] Also hide ppem settings in hb-ot-shape-closure
...
Leaving ptem, as that can in theory change shape closure if we apply it
to optical-size axis (we currently don't).
4 years ago
Behdad Esfahbod
c40e00796c
[util] Fold helper-cairo-ansi.cc into helper-cairo-ansi.hh
4 years ago
Behdad Esfahbod
4fe43ccbf1
[util] Fold ansi-print.cc into ansi-print.hh
4 years ago
Behdad Esfahbod
b1db0e4a0f
[util] Fold view-cairo.cc into view-cairo.hh
4 years ago
Behdad Esfahbod
6500f68f1f
[util] Change hb-subset to use face_options_t instead of font_options_t
4 years ago
Behdad Esfahbod
869e20e09f
[util] separate face options from font options
4 years ago
Behdad Esfahbod
b3a2f2bfcf
[util/main-font-text] Simplify
4 years ago
Behdad Esfahbod
71440dbd90
[util] Move font-size and upem to be extern variables
4 years ago
Behdad Esfahbod
fc0339eef0
[util] Simplify shape-consumer by removing buffer arg
4 years ago
Behdad Esfahbod
e014c6fa2d
[util/main-font-text] Move eol from template arg to main() arg
4 years ago
Behdad Esfahbod
463411a1de
[util] Remove unused option_group_t
4 years ago
Behdad Esfahbod
8588173ee6
[util] Rework post_parse() handling
4 years ago
Behdad Esfahbod
3362b48f5a
[util] Templatize add_group logic
4 years ago
Behdad Esfahbod
fe90fbeba3
[util] Remove unused pre_parse callback logic
4 years ago
Behdad Esfahbod
09e4d7dd30
[util] Simplify output_options_t
4 years ago
Behdad Esfahbod
e109f9a6f9
[util] Collect cmdline arg options outside of constructor
4 years ago
Behdad Esfahbod
e57dd66889
[util] Initialize struct members inline
4 years ago
Behdad Esfahbod
21f1054d47
[util/hb-subset] Keep face around instead of font
4 years ago
Behdad Esfahbod
db6fbe29e4
[util/hb-subset] Use driver_t<> in outer block as well
...
a363ce573c (r54282223)
4 years ago
Behdad Esfahbod
47d47e8c43
[util/hb-shape/hb-subset] Don't terminate on first error in batch mode
...
There's no reason to quit processing. The failure is already
communicated via stdout in both cases.
4 years ago
Behdad Esfahbod
a363ce573c
[util/hb-subset] Minor refactor of batch mode
...
To match recent changes to hb-shape.
4 years ago
Khaled Hosny
10e73d188a
[test] Add batch mode to hb-subset and use it
...
time meson test --suite=subset down from:
real 0m22.822s
user 0m44.561s
sys 0m9.255s
to:
real 0m19.418s
user 0m38.171s
sys 0m3.587s
Does not seem to help much, but it is something.
Part of https://github.com/harfbuzz/harfbuzz/issues/3089
4 years ago
Behdad Esfahbod
ed99c80623
[util/hb-shape] Refactor driver type duplication
4 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.
4 years ago
Garret Rieger
f9d8e4a976
[subset] switch ..._set_flags to not take a mask.
4 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.
4 years ago
Behdad Esfahbod
d7541f7b55
[util/hb-shape] Free cached resources on termination
4 years ago
Behdad Esfahbod
ad03f34df7
[util/hb-shape] Cache blob/face in batch mode
4 years ago
Behdad Esfahbod
5dae8297bb
[util] Minor followup to https://github.com/harfbuzz/harfbuzz/pull/3083
4 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.
4 years ago