Behdad Esfahbod
c6ef11daf5
[util] Fix build with HB_NO_VAR
2 years ago
Behdad Esfahbod
1eb8e82086
[util] Accept space as delimiter for --features/--variations
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3715
2 years ago
Behdad Esfahbod
096121badb
[util] Implement --sub-font
...
Internally creates a font at 2x and creates a sub-font from it...
3 years ago
Behdad Esfahbod
640b6ffddd
[util] Default font-funcs to 'ot' instead of 'ft'
3 years ago
Behdad Esfahbod
4818b7ed72
[util] Add --font-slant
3 years ago
Behdad Esfahbod
cd77846bd9
[util] Fix leak of an hb_font_t
3 years ago
Behdad Esfahbod
3f94177ee8
[util] Use g_set_error() in one more place
3 years ago
Behdad Esfahbod
24a9d8c78d
[util] Use post_parse in font_options_t
3 years ago
Behdad Esfahbod
e4b33d9d36
[util] Use post_parse in face_options_t
3 years ago
Behdad Esfahbod
c0ea4e2d33
[util] Use post_parse to validate
3 years ago
Behdad Esfahbod
3e3e1801a5
[util] Small tweaks in --help output
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
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]
3 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).
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
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
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
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
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
Khaled Hosny
92b85749f2
[util] Strip quotes when parsing features
...
When running in batch mode, the quotes are not stripped by the shell and
end up in the feature string. This breaks one of the AOTS tests.
Alternatively, we can remove the quotes from the test files, not sure
which is less hacky, though!
3 years ago
Behdad Esfahbod
bdfed8f113
[blob] Add failing versions of create API
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/2567
New API:
+hb_blob_create_or_fail()
+hb_blob_create_from_file_or_fail()
Use these in util/ to distinguish empty file from not-found file.
Only err on the latter.
3 years ago
Behdad Esfahbod
c61ce962cf
[buffer] In hb_buffer_get_positions(), return NULL if inside message callback
...
As discussed in https://github.com/harfbuzz/harfbuzz/issues/2468#issuecomment-645666066
Part of fixing https://github.com/harfbuzz/harfbuzz/issues/2468
3 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
David Corbett
5a0936f53e
Increase the size of the serialization buffer
5 years ago
Ebrahim Byagowi
2a549aadd3
minor
5 years ago
Ebrahim Byagowi
2be859d289
minor, replace nullptr checks with implicit ones
5 years ago
Ebrahim Byagowi
ce114d6b27
minor, tweak spaces
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
Zero King
6d53cda1ba
[util] Fix memory leak
5 years ago
Qunxin Liu
1da1b4dc94
[subset] For option "--unicodes", add support for "*" to retain all code points
5 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
David Corbett
087b9a0ad0
Fix or document unsupported font-feature-settings
6 years ago
David Corbett
45adc18526
Fix or document unsupported font-feature-settings
6 years ago
Garret Rieger
490d52f908
[subset] Add retain-gids option to hb-subset executable.
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
9bddfde25d
[util] Fix up previous commit
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