Behdad Esfahbod
bf81bbfb35
Revert "[arabic] Do not re-compose Unicode sequences"
...
This reverts commit ff34c240b0
.
https://github.com/harfbuzz/harfbuzz/issues/3179#issuecomment-911242833
3 years ago
Behdad Esfahbod
ff34c240b0
[arabic] Do not re-compose Unicode sequences
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3179
3 years ago
Alba Mendez
5fadf4c85e
Small docs improvement
...
Mention that the returned strings are always nul terminated for convenience.
3 years ago
Behdad Esfahbod
04cf6212d7
[util/hb-subset] Fix --version and --help again
...
38ad093216
3 years ago
Behdad Esfahbod
5c4c173b06
Merge pull request #3146 from googlefonts/set_api
...
[subset] proposed update to subset set apis.
3 years ago
Garret Rieger
de85636581
[subset] s/REPLACE/REPLACEME/
3 years ago
Garret Rieger
3844e58e14
[subset] remove helper functions for accessing subset input sets.
3 years ago
Behdad Esfahbod
41b9f2abcd
[set] Add TODO item
3 years ago
Behdad Esfahbod
93ac700da6
[set] Add copy-constructor/assignment again
3 years ago
Garret Rieger
b9a176e268
[subset] speedup cmap4 subsetting for large codepoint counts. ( #3178 )
...
glyphIdArray generation implementation was O(n^2). Refactored to use a hashmap to reduce complexity. After the change subset time for a 22k codepoint subset went from 7s to 0.7s.
3 years ago
Behdad Esfahbod
fdce294120
[util/hb-subset] Print error and suggest filing github issue if operation fails
...
https://github.com/harfbuzz/harfbuzz/issues/3173#issuecomment-906715780
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
57d6bf8251
[subset] in sets union correctly size the pointer array.
3 years ago
Garret Rieger
102666dab7
[subset] add test for hb_subset_input_set (...).
3 years ago
Garret Rieger
7194c2a2a3
[subset] use anonymous union to hold the input sets instead of a map.
3 years ago
Garret Rieger
05204d7586
[subset] implement hb_subset_input_set (...).
...
Switch to storing the sets keyed by enum internally.
3 years ago
Garret Rieger
50193262f0
[subset] reorder set enums.
3 years ago
Garret Rieger
3282f540a9
[subset] restore legacy set api methods.
3 years ago
Garret Rieger
1457c1f080
[subset] set enum name changes.
3 years ago
Garret Rieger
1b5e159301
[subset] Remove HB_SUBSET_SETS_COUNT and flags comment.
3 years ago
Garret Rieger
4c389fd9e5
[subset] add unicode and glyph set enums.
3 years ago
Garret Rieger
e3e1ae8766
[subset] proposed update to subset set apis.
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
Behdad Esfahbod
99356ea5f0
Merge pull request #3150 from harfbuzz/item-context-tests
...
[test] Add tests for item context
3 years ago
Behdad Esfahbod
1620698bd5
[subset-input] Minor format
3 years ago
Behdad Esfahbod
18b4aab652
Merge pull request #3171 from googlefonts/unicode_glyph_invert
...
[subset] use inverted set for all unicodes.
3 years ago
Garret Rieger
75efade7a4
[subset] format --gids and --unicodes help messages better.
3 years ago
Garret Rieger
cd07070e41
[subset] Move plan unicodes and gids population to end of _populate_unicodes...
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
Behdad Esfahbod
4b5a81f13c
[buffer] Fix hb_buffer_append() pre/post-context logic
...
Part of https://github.com/harfbuzz/harfbuzz/pull/3150
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
Behdad Esfahbod
e9e6d66cd6
[subset] Minor internal parameter rename
3 years ago
Behdad Esfahbod
955f86a034
[test-set] Fix compiler warnings
3 years ago
Garret Rieger
59deb754b3
[subset] rename _collect_subset_layout to _collect_layout_indices.
...
Better describes what the function does.
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
Garret Rieger
f84daccb4f
[set] include null pool sets in the permutations tested by inverted_operations.
3 years ago
Behdad Esfahbod
c90678cbc5
[set] One more try to fix things
...
That I don't let a "make check -j10" run finish before pushing things
out means either that we need to speed up our build / test process,
or I need a faster laptop...
3 years ago
Behdad Esfahbod
357976963e
[set] One more try at fixing clear() on empty set
3 years ago
Garret Rieger
fb07f8f876
During subset input creation check for set alloc failures and fail if encountered.
3 years ago
Behdad Esfahbod
b5177d2147
[set] Fix seam exposed by previous commit
3 years ago
Behdad Esfahbod
f0de40dd61
Whitespace
3 years ago
Behdad Esfahbod
8cdbea5580
[ot-shape-normalize] Move buffer out of hb_ot_shape_normalize_context_t
3 years ago
Behdad Esfahbod
10da9fd20d
[ot-map] Whitespace
3 years ago
Behdad Esfahbod
d3e09bf465
[set] Make all operators null-safe again
...
Changed my mind.
Also for hb_map_clear().
Part of https://github.com/harfbuzz/harfbuzz/pull/3162
3 years ago
Khaled Hosny
33bfe9edd6
[test] Add tests for item context
...
Test pre-context and post-context in Arabic shaper, as well as
interaction of pre-context with BOT flag.
3 years ago
Khaled Hosny
430224b1a0
[buffer] Handle pre/post-context in buffer_append
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1843
3 years ago
Khaled Hosny
6ca0ffd42e
[util] Add --unicodes-before/after
...
Parallel to --unicodes for --text-before/after. To be used in tests.
3 years ago
Khaled Hosny
65c622c689
Typo
3 years ago
Khaled Hosny
c76af4973c
[doc] We use GitHub for discussion not the mailing list
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3160
3 years ago