Rod Sheeter
5cedda5e4a
[subset] Fix null pointer deref, tidy up a bit
6 years ago
Rod Sheeter
8a84b540c7
[subset] Tests passing using iterator based glyf
6 years ago
rsheeter
3a4c928fcf
[subset] Fix glyf tests except hint stripping & local test asan
6 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
6555f20958
[subset] Truncate empty gids at the end in retain-gids mode.
6 years ago
Garret Rieger
d0b6d539f6
Make hb_subset_input_glyph_set () actually do something.
6 years ago
Garret Rieger
4f37ab63de
Make hb_subset_input_glyph_set () actually do something.
6 years ago
Garret Rieger
ccc59dc612
[subset] Add unit test for glyf subsetting and retain gids.
6 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
93fe0faaee
[subset] Clean up hb_subset_input_t API
6 years ago
Garret Rieger
fc246ec985
[subset] Move variable declaration out of loop.
7 years ago
Garret Rieger
197cb18b22
[subset] Add test cases for gsub closure in subsetting.
7 years ago
Behdad Esfahbod
11f1f4131b
[set] Add is_subset
...
New API:
+hb_set_is_subset()
7 years ago
Garret Rieger
4fa1c6705a
[subset] Check instruction offsets in glyph to ensure they are in bounds.
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
ffcb5cbf71
[subset] update the test file for composite, fix an offset calculation
7 years ago
Rod Sheeter
b3790a65a1
[subset] add a (failing for now) test for composite glyf hint dropping
7 years ago
Garret Rieger
f14d1b64c2
[subset] when dropping hints, clear hint related fields in maxp.
7 years ago
Rod Sheeter
0ac8c0c1e6
[subset] zero glyf and loca memory before writing so pads are clean. Test just the part of maxp we care about
7 years ago
Rod Sheeter
9bd6d25254
[subset] clone trim logic from fonttools glyf handling
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
df9e22656d
[subset] add a glyf subsetting test for a font with composite glyphs.
7 years ago
Garret Rieger
df6d780355
[subset] Extract maxp subsetting into hb-ot-maxp-table.
7 years ago
Behdad Esfahbod
9046e92442
[subset] Rename constructor to hb_subset_input_create_or_fail()
...
To signify that unlike rest of library, returns nullptr on failure.
7 years ago
Behdad Esfahbod
d5b33f2fe1
[subset] hb_subset_input_t changes
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