Garret Rieger
9fbe52b88d
[subset] enable instancing tests by default.
2 years ago
Garret Rieger
eda02c2ebd
[subset] Move hb_subset_preprocess to be non-experimental.
2 years ago
Behdad Esfahbod
1b86753031
[hb-subset] Support -u, -g, -t
...
For --unicodes, --gids, --text.
2 years ago
Garret Rieger
4c49daf7cd
[subset] actually use the preprocessed face in hb-subset.
...
Tests weren't actually using the preprocessed face due to this typo in util/hb-subset.
2 years ago
Garret Rieger
515863e57c
[subset] Remove add accelerator flag, replace with new api method.
...
Adds hb_subset_preprocess() which preprocesses the face and attaches accelerator data.
2 years ago
Garret Rieger
3394ec7048
[subset] use subset accelerator in tests.
...
This ensures it produces equivalent subsets as without the accelerator.
2 years ago
Behdad Esfahbod
a66ba594b4
[util] Fix stack-underflow
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3737
2 years ago
Qunxin Liu
2a4773e43d
add option "--instance", store axes_location in subset_plan and drop all
...
variation tables when all axes are pinned at default
2 years ago
jfkthame
0cd404d0b8
Typo fix in hb-subset
...
s/substract/subtract/
2 years ago
Garret Rieger
38e81f2be9
[subset] Add --layout-scripts command line flag.
2 years ago
Cosimo Lupo
cc0f1f3b60
Expose --passthrough-tables option to hb-subset CLI tool
3 years ago
luz paz
e2e305066a
Fix various typos
...
Found via `codespell -q 3 -S ./perf/texts -L actualy,ba,beng,fo,gir,inout,nd,ot,pres,ro,te,teh,timne`
3 years ago
Garret Rieger
d700646c33
[subset] In preperation for 3.0.0 release remove legacy subsetting api methods.
3 years ago
Khaled Hosny
838d670752
[subset] Improve alignment of --help-all message
3 years ago
Behdad Esfahbod
04cf6212d7
[util/hb-subset] Fix --version and --help again
...
38ad093216
3 years ago
Behdad Esfahbod
38ad093216
[util/hb-subset] Don't ignore errors during face parsing
...
Was ignoring file-not-found errors.
3 years ago
Garret Rieger
1e1438c4fb
[subset] fix --*-file options in hb-subset. ( #3176 )
...
The previous change to add -/+ versions of each set type broke all of the --*-file input options since all of the parse functions now default to replacing the set if the + variant is not being used. This fixes the issue by changing parse_file_for to pass '+' as the name to the parsing function. This triggers the append mode.
3 years ago
Garret Rieger
9db494f517
[subset] Update remaining subset input sets to use inversion for all. ( #3172 )
...
* [subset] Update remaining subset input sets to use inversion for all.
* [subset] Update flag help for remaining sets to mention -=.
3 years ago
Garret Rieger
75efade7a4
[subset] format --gids and --unicodes help messages better.
3 years ago
Garret Rieger
fa4bf7cf58
[subset] use inverted sets for glyph id input.
...
Adds --gids-=, --glyphs-=, --text-=, --unicodes-= options. Use inverted sets to represent all glyphs and/or all unicodes.
3 years ago
Garret Rieger
8f4f47df7c
[subset] use inverted set for all unicodes.
...
Modify the code that handles input->unicodes to be safe with possibly inverted sets. Also adds --unicodes-= and --unicodes+= flags.
3 years ago
Garret Rieger
f2441a4b65
[subset] Remove retain all layout features flag.
...
Instead use inverted sets to handle requesting all features. Modifies feature collection in subset plan to intersect the set of requested features against the features in the font. This prevents iterating a fully filled feature tag set.
3 years ago
Behdad Esfahbod
7115af23eb
[util] Fix glib deprecation warning re g_memdup()
3 years ago
Behdad Esfahbod
ccc2a1921a
[util/hb-subset] Whitespace
3 years ago
Behdad Esfahbod
4dfc668e0a
[util/hb-subset] Move glyph name parsing inline instead of post_parse
...
Now that we have face around we can just do it as it happens.
3 years ago
Behdad Esfahbod
08d43d1ba1
[util/hb-subset] Move add_all_unicodes inline, instead of post_parse
...
Now that we have the font loaded, we can do it as it happens.
3 years ago
Behdad Esfahbod
11b0b68853
[util/hb-subset] Pre-parse font-face so we can use it during main parsing
3 years ago
Behdad Esfahbod
c45d2a9c9d
[util] Allow setting cli summary / description
3 years ago
Behdad Esfahbod
1cb621d35d
[util/hb-subset] Minor move parsing
3 years ago
Behdad Esfahbod
4d73b3d9b1
[util] Add --batch to hb-view / hb-ot-shape-closure
3 years ago
Behdad Esfahbod
23282c9c9d
[util/hb-subset] Support ranges in --unicodes / --unicodes-file
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3109
3 years ago
Behdad Esfahbod
f60f005b1f
[util/hb-subset] Remove wrong hb_set_destroy() in error paths
3 years ago
Behdad Esfahbod
49cf36027c
[util/hb-subset] Parse --gids-file, --glyphs-file, --text-file, --unicodes-file
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/2455
Fixes https://github.com/harfbuzz/harfbuzz/issues/3002
3 years ago
Behdad Esfahbod
bf80b7ea45
[util/hb-subset] Add --glyphs for passing glyph names
...
Part of https://github.com/harfbuzz/harfbuzz/issues/2455
3 years ago
Behdad Esfahbod
5b07c3c7d0
[util/hb-subset] Parse --text & --unicodes
3 years ago
Behdad Esfahbod
c98773ebb0
[util/hb-subset] Move output-file validation code into post_parse
3 years ago
Behdad Esfahbod
58bfe40794
[util] Move hb-subset away from main-font-text
3 years ago
Behdad Esfahbod
97a9e4e41e
[util] Separate shape_text_options_t from text_options_t
3 years ago
Behdad Esfahbod
e4b33d9d36
[util] Use post_parse in face_options_t
3 years ago
Behdad Esfahbod
9468e46998
[util] Rename main_font_text back to main_font_text_t
3 years ago
Behdad Esfahbod
9d8bbe3e53
[util] Make main_font_text a struct again
...
Going to move to G_OPTION_REMAINING.
3 years ago
Behdad Esfahbod
5bd463f130
[util/hb-subset] Access input directly
3 years ago
Behdad Esfahbod
b83fd3a564
[util] Refactor batch-processing code into batch.hh
3 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
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
af9d2495dc
[util] Use inheritance for output_options_t
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
798bb89c96
[util] Move shape format options into shape-format.hh
3 years ago