Garret Rieger
9ab751ac9f
[subset] Remove hb_subset(). Leaving just hb_subset_or_fail().
3 years ago
Khaled Hosny
5091ea7e24
Merge pull request #2733 from astiob/buffer-context-doc
...
[docs] Describe buffer context applicability more explicitly
4 years ago
Garret Rieger
e8ef0e627c
[subset] WIP convert hdmx subsetting to use iterators.
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
Garret Rieger
21bf147054
[subset] Fix hdmx subsetted size calculation.
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.
6 years ago
Garret Rieger
07851aae9d
[subset] Couple of fixes for fuzzer discovered issues. ( #924 )
...
* [subset] sanitize individual DeviceRecord's as part of hdmx sanitization.
* [subset] Fix out of bounds read with non-two byte align glyphs.
* [subset] Just use size_device_record >= DeviceRecord::min_size.
* [subset] Add TODO.
* [subset] Re-order checks in hdmx sanitize.
7 years ago
Garret Rieger
3531efdb4c
[subset] Fixed out of bounds read when subsetting hdmx.
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
5267520e07
[subset] update hdmx test to create input explicitly
7 years ago
Garret Rieger
15fc45bfed
[subset] Add a unit test for hdmx subsetting.
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
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