Behdad Esfahbod
b912fbea17
Remove most uses of direct comparison to Null objects
6 years ago
Behdad Esfahbod
ed7b2e58fc
Remove OT namespace from hb-machinery-private.hh
6 years ago
Behdad Esfahbod
9583e0077d
Port more off of Sanitizer<>
6 years ago
Behdad Esfahbod
be458eb059
Include more basic internal headers from hb-private.hh
6 years ago
Behdad Esfahbod
bddeb2b10c
Minor renamings of internal inline functions
6 years ago
Behdad Esfahbod
cc0b04f48f
[subset] Remove HB_SUBSET_BUILTIN
...
Just include hb-static.cc in libharfbuzz-subset.so source list as
well. Those building it built-in will include hb-static.cc once
already. No need for any gymnastics.
7 years ago
Behdad Esfahbod
b8e406f0c7
More fixes for SunStudio 12.6 build
...
Followup to https://github.com/harfbuzz/harfbuzz/pull/1053
7 years ago
Garret Rieger
a5673da9be
[subset] Add drop_ot_layout setting to subset input.
7 years ago
Behdad Esfahbod
f9abbf83b6
Fix fallout from 975bdd5ef5
...
Ouch!
7 years ago
Behdad Esfahbod
f7515769fd
[vector] Use Crap pool in push() as well
7 years ago
Garret Rieger
251cc977e9
[subset] Switch to using hb_map_t inside of hb_subset_plan_t.
7 years ago
Behdad Esfahbod
fd3d004231
Move pool definitions to hb-static.cc
7 years ago
Behdad Esfahbod
7f7b1370d3
Fix Uniscribe build
...
If a pointer type was passed to Null(), reinterpret_cast<> was
complaining about qualifiers being removed. Turns out I need the const on
the other side of "Type" to fix that. Also remove unused const from
NullPool type.
7 years ago
Behdad Esfahbod
f83e992c8b
Mark CrapPool thread_local
...
Not sure if I like to keep it. For now, aim for correctness.
7 years ago
Behdad Esfahbod
5d80129891
Add CrapPool
...
Common Regoin for Access Protection. Like the NullPool, but writable.
7 years ago
Behdad Esfahbod
63f57f4dab
Mark more unsized array's as arrayZ
7 years ago
Behdad Esfahbod
eba1c16a60
Always lock blob in sanitize. Remove blob->lock_as() in favor of blob->lock()
7 years ago
Behdad Esfahbod
b4fa505014
Move Sanitizer::lock_instance<>() to blob->lock_as<>().
7 years ago
Behdad Esfahbod
abc12f7b81
Move null pool to hb-private
7 years ago
Behdad Esfahbod
5c3112aec8
s/hb_prealloced_array_t/hb_vector_t/g
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1017
7 years ago
Behdad Esfahbod
a60ba7964e
s/finish/fini
...
For consistency.
7 years ago
Garret Rieger
21a181af2b
[subset] sketch out support for a call that lists all codepoints present in a font. Implement support for it in format 4 cmap sub table.
7 years ago
Garret Rieger
1c3372786c
[subset] fix infinite loop bug in looping through tables for subsetting.
7 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
Behdad Esfahbod
e4d1cbfb4f
Add HB_SUBSET_BUILTIN
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/865
7 years ago
Garret Rieger
7251181b56
[subset] Fix infinite loop in there are more then 32 tables.
7 years ago
Garret Rieger
39b2f69fab
[subset] Drop the same tables by default as fontTools does.
7 years ago
Garret Rieger
dd10769993
[subset] drop all glyph names from the post table.
7 years ago
Garret Rieger
91867cda6a
[subset] cleanup.
7 years ago
Garret Rieger
0e8f9430c8
[subset] Skip subsetting vhea.
7 years ago
Garret Rieger
64cf53d619
[subset] Subset vmtx if present.
7 years ago
Behdad Esfahbod
df1c7d5b60
Minor
7 years ago
Behdad Esfahbod
dc5c7927e7
[subset] Caclculate head table checksum adjustment
...
Test still fails, because we do not serialize tables in the same
order that fonttools subsetter does.
7 years ago
Garret Rieger
66b0a39079
[subset] Fix memory leak in hb-subset.
7 years ago
Garret Rieger
5a36b55fba
[subset] Fix memory leak in subset face destroy.
7 years ago
Rod Sheeter
9bd6d25254
[subset] clone trim logic from fonttools glyf handling
7 years ago
Garret Rieger
ec302ad5bd
[subset] Fail subset if a table fails to sanitize.
7 years ago
Garret Rieger
aa4aa2353c
[subset] Enable hdmx subsetting.
7 years ago
Garret Rieger
fe42862ab3
[subset] Sketch out a basic hb-ot-hdmx.hh.
7 years ago
Rod Sheeter
2d0265242b
[subset] keep the result of _subset
7 years ago
Rod Sheeter
74e0c13a4a
[subset] drop hint tables if so flagged. Still need to dump glyf instructions.
7 years ago
Rod Sheeter
7ecca8c0a8
[subset] keep the result of _subset
7 years ago
Garret Rieger
e3e0ac9823
[subset] Move glyf subsetting code into hb-ot-glyf-table.hh
7 years ago
Behdad Esfahbod
0bff6991de
Ugh. Really fix build.
7 years ago
Garret Rieger
e330ef3711
[subset] Restore hb_face_data_destroy to be internal.
7 years ago
Rod Sheeter
3ed70e5e64
[subset] return bool not hb_bool_t from table::subset
7 years ago
Rod Sheeter
d463e9f6b5
[subset] Give Behdad credit again
7 years ago
Rod Sheeter
fa87770372
[subset] First pass at hmtx
7 years ago
Garret Rieger
89f17e3965
[subset] capitalize dsig.
7 years ago
Garret Rieger
df6d780355
[subset] Extract maxp subsetting into hb-ot-maxp-table.
7 years ago