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
Behdad Esfahbod
33c82c7dad
[ot-shape] Fix unused-var error when building without AAT
...
Fixes https://github.com/harfbuzz/harfbuzzjs/issues/45
3 years ago
Qunxin Liu
34e0b28fae
[subset] make glyph-names option match fonttools behavior
...
Don't encode psNames that are contained in standard glyph names set
3 years ago
Behdad Esfahbod
829b0f3353
Merge pull request #3154 from harfbuzz/set-invert
...
Resurrect hb_set_invert()
3 years ago
Garret Rieger
915550ab19
[set] remove inverted test TODO.
3 years ago
Garret Rieger
c4ed582997
[set] add test for inverted set operations.
...
This test checks all possible set configurations against each operation type.
3 years ago
Garret Rieger
325fd6ddb8
[set] add tests for inverted set equality.
3 years ago
Garret Rieger
287032af6c
[set] update set test TODO list.
3 years ago
Garret Rieger
5c003d80a6
[set] add tests for inverted previous iteration.
3 years ago
Behdad Esfahbod
84c2a30214
[bit-set-invertible] Second try fixing previous()
3 years ago
Behdad Esfahbod
8f88747a5e
[bit-set-invertible] Fix previous() iteration
3 years ago
Garret Rieger
3f2cc582f2
[set] add basic and iteration set inverion tests.
3 years ago
Behdad Esfahbod
1d832693e1
[set] Protect against immutible null set with invertible addition
3 years ago
Behdad Esfahbod
7115af23eb
[util] Fix glib deprecation warning re g_memdup()
3 years ago
Behdad Esfahbod
dc800ffd6c
[bit-set] Remove TODO items we don't intend to finish
3 years ago
Behdad Esfahbod
92908c122b
[bit-set-invertible] Remove extra check
...
We don't expect immutable / null set in this code.
3 years ago
Behdad Esfahbod
1babe80ed2
[bit-set-invertible] Fix last remaining corner-case
3 years ago
Behdad Esfahbod
e8911d137c
[bit-set-invertible] Implement a couple other missing corner cases
...
Also, in bit-set, don't compute population in is_equal/is_subset()
if we don't have it computed already.
3 years ago
Behdad Esfahbod
2579dc648f
[bit-set-invertible] Move code around
3 years ago
Behdad Esfahbod
2dfc104236
[bit-set-invertible] Implement is_empty() for inverted case as well
3 years ago
Behdad Esfahbod
ec4812a7d4
[bit-page] Remove unused inverted code
3 years ago
Behdad Esfahbod
87885e6f02
[bit-set-invertible] Fix next/previous() logic
3 years ago
Behdad Esfahbod
ee4e331a6e
[bit-set] Remove unused get_min(inverted)
3 years ago
Behdad Esfahbod
eec1a25e71
[bit-set-invertible] Rewrite get_min/max() in terms of next/previous()
3 years ago
Behdad Esfahbod
f09d5ed0f5
[algs] Remove hb_bitwise_non()
3 years ago
Behdad Esfahbod
f4fd7baf7e
[bit-set-invertible] Fix subtract() logic
3 years ago
Behdad Esfahbod
f317d8e426
[bit-set-invertible] Fix intersect() logic
3 years ago