Khaled Hosny
5091ea7e24
Merge pull request #2733 from astiob/buffer-context-doc
...
[docs] Describe buffer context applicability more explicitly
4 years ago
ckitagawa
49b98e8650
Fix nullptr de-reference failure if both blobs in a subset test are 0 in size
5 years ago
Qunxin Liu
36a5c042d7
[subset] Add "--name-languages" and "--name-legacy" options
...
Make name table subsetting consistent with fontTools
5 years ago
Ebrahim Byagowi
e171beeb5f
Revert "[subset] Add "--name-languages" and "--name-legacy" options"
...
Causes tests failures, please reapply when tests are fixed, thanks.
This reverts commit fd85818b5b
.
5 years ago
Qunxin Liu
fd85818b5b
[subset] Add "--name-languages" and "--name-legacy" options
...
Make name table subsetting consistent with fontTools
5 years ago
Ebrahim Byagowi
a0b4ac4dce
Turn 8 spaces to tab across the project
...
According to the current code style of the project
5 years ago
Qunxin Liu
993d81b9c5
[subset] Add one ttf file with fvar/STAT tables to integration test
...
Ignore gvar/MVAR/HVAR table
add support for --nameIDs=* option
6 years ago
rsheeter
3a4c928fcf
[subset] Fix glyf tests except hint stripping & local test asan
6 years ago
Qunxin Liu
6faac8df83
[subset] Subsetting Name Table Step 4
...
Add unit test and integration test
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
Behdad Esfahbod
967a204ee9
Minor
6 years ago
Ebrahim Byagowi
c110878cb6
[test] Unify font file opening across the tests
6 years ago
Behdad Esfahbod
1d995a340b
Minor
6 years ago
Ebrahim Byagowi
4146c00caa
[test] Use an in-repo font for test-multithread ( #1218 )
...
As Khaled's suggestion, hard-coded font paths was only for my own testing.
6 years ago
Ebrahim Byagowi
403019482b
Fix test-subset-* leak issues
...
See also https://github.com/harfbuzz/harfbuzz/pull/1169
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
Ebrahim Byagowi
ce17340b23
Add hb_blob_create_from_file, a new API ( #926 )
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
Behdad Esfahbod
70ad69f244
[test] Fix build with older glib
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
Behdad Esfahbod
0bff6991de
Ugh. Really fix build.
7 years ago
Behdad Esfahbod
0bd2d76bdd
[test] Fix a couple of coverity_scan issues
7 years ago
Garret Rieger
c36d015b0e
[subset] missing return.
7 years ago
Behdad Esfahbod
7b5ce74047
Fix warnings
7 years ago
Rod Sheeter
c7a633f957
[subset] try to get more info from bot where g_assert_cmpmem fails
7 years ago
Rod Sheeter
0bb2d7ac12
[subset] fix int type for blob length in hb-subset-test.h
7 years ago
Garret Rieger
e0ffebead6
[subset] In hb-subset-test use hb_set_union instead of manually copying set.
7 years ago
Garret Rieger
e5edcc81bf
[subset] Fix codepoint iteration in hb-subset-test.
7 years ago
Garret Rieger
8b1dbbef1a
Fix compile error in hb-subset-test.
7 years ago
Rod Sheeter
89ee20f1a3
basic wiring for a (failing) cmap test
7 years ago
Garret Rieger
d8d8bd8405
[subset] Add some helper functions for writing tests around subsetting.
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