Garret Rieger
670ef070bd
[subset] Change subset plan create to be or_fail.
3 years ago
Garret Rieger
ae8d373bcf
[subset] add subset plan reference, set/get user data functions.
3 years ago
Garret Rieger
b65e48a786
[subset] Add subset plan to public API.
...
Add the ability to create a subset plan which an be used to gather info on things like glyph mappings in the final subset. The plan can then be passed on to perform the subsetting operation.
3 years ago
Garret Rieger
d700646c33
[subset] In preperation for 3.0.0 release remove legacy subsetting api methods.
3 years ago
Garret Rieger
102666dab7
[subset] add test for hb_subset_input_set (...).
4 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.
4 years ago
Garret Rieger
cb05c363d7
[subset] add some basic tests for the legacy subset methods.
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
Garret Rieger
9ab751ac9f
[subset] Remove hb_subset(). Leaving just hb_subset_or_fail().
4 years ago
Khaled Hosny
5091ea7e24
Merge pull request #2733 from astiob/buffer-context-doc
...
[docs] Describe buffer context applicability more explicitly
4 years ago
Ebrahim Byagowi
c110878cb6
[test] Unify font file opening across the tests
6 years ago
Behdad Esfahbod
3341c7fbfb
[fuzzing] Move fuzzing fonts from api/ here
6 years ago
Chun-wei Fan
4035158de4
test/api/test-subset-*.c: Fix build on pre-C99
...
Ensure that we have the variables at the beginning of the block. These
are the only fixes that we need for building HarfBuzz on older
compilers.
6 years ago
Behdad Esfahbod
f39166f0c0
[subset] Remove unused hb_subset_profile_t
...
We might reintroduce it later, but for now remove, as it was unused.
Some things that should have been in this object (drop_hints, etc)
are already in hb_subset_input_t. So, for now, keep everything there.
7 years ago
Garret Rieger
1c3372786c
[subset] fix infinite loop bug in looping through tables for subsetting.
7 years ago
Garret Rieger
e597436b99
[subset] Disable glyf accelerator_t methods if it didn't successfully init.
7 years ago
Garret Rieger
7251181b56
[subset] Fix infinite loop in there are more then 32 tables.
7 years ago
Chun-wei Fan
831d4a2dab
test/api: Fix building subset tests
...
Include stdbool.h in hb-setset-test.h instead of in the individual
sources, if it is found; otherwise use a simplistic fallback for it if
it is not found.
Also declare variables at the top of the block, to build on pre-C99
compiliers.
7 years ago
Rod Sheeter
4f07437dfe
[subset] sketch out dropping in-glyf instructions. Sometimes yields differnet size glyphs than fonttools, possibly due to padding not being corrected
7 years ago
Garret Rieger
865b6971ad
[subset] Add a test for OS/2 fixes during subsetting.
7 years ago
Garret Rieger
8cf8b78faa
[subset] whitespace
7 years ago
Rod Sheeter
89ee20f1a3
basic wiring for a (failing) cmap test
7 years ago
Garret Rieger
4cdd1b16c9
[subset] added todo in test-subset-glyf.
7 years ago
Garret Rieger
1714feef4f
[subset] re-enable test-subset-glyf. Refactor to use common functions in hb-subset-test.h
7 years ago
Behdad Esfahbod
4c5bdb4b39
[test] Disable test-subset-glyf for now
7 years ago
Behdad Esfahbod
43314ff4c0
More fixes
...
test-subset-glyf still failing. No idea why :(
7 years ago
Behdad Esfahbod
9682ef135f
Minor fixups
7 years ago
Garret Rieger
f2ceb5ee4d
Comment out failing assert in test-subset-glyf for now. Should be re-enabled once hb_subset is writing out a new face.
7 years ago
Garret Rieger
89dbebd4ad
Add a basic test for glyf subsetting.
7 years ago