Garret Rieger
35233d2514
[repacker] fix fuzzer reported stack overflow.
...
Fixes https://oss-fuzz.com/testcase-detail/6014493291577344 .
2 years ago
Garret Rieger
b17fbc200b
[repacker] use memcpy to avoid alignment issues.
2 years ago
Garret Rieger
f1d3489388
[repacker] bail on failure to alloc assigned_bytes set.
...
Fixes fuzzer issue https://oss-fuzz.com/testcase-detail/5390364397928448 .
2 years ago
Garret Rieger
239a5aca02
[repacker] don't allow references to the null object in graph.
...
Fixes fuzzer issue https://oss-fuzz.com/testcase-detail/6714085985353728
2 years ago
Behdad Esfahbod
4ce0f08897
[coretext] Clamp variation settings to min/max
...
Like our native implementation does; CoreText doesn't itself.
Also fix leak of CFNumber's.
2 years ago
Behdad Esfahbod
1b86753031
[hb-subset] Support -u, -g, -t
...
For --unicodes, --gids, --text.
2 years ago
Behdad Esfahbod
22b0390e2d
Revert "[VarData] Don't clear memory we are going to fill in completely"
...
This reverts commit e28e2dad03
.
This made fuzzer unhappy. I'm not sure how.
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54044
2 years ago
Behdad Esfahbod
3c497e2458
[harfbuzz-subset.cc] Revert accidental change
...
These extra files are unnecessary, but our generator currently
isn't smart enough to know that. Will fix some time.
2 years ago
Behdad Esfahbod
aa7f5e3742
[subset] Conditionalize call to hb_font_set_variations
2 years ago
Behdad Esfahbod
ad5588e800
[config] If HB_NO_SHAPER then HB_NO_OT_SHAPE
2 years ago
Behdad Esfahbod
1a5c749581
[config] Flesh out HB_NO_SHAPER a bit more
2 years ago
Behdad Esfahbod
2c0abf0258
Revert "[harfbuzz-subset.cc] Trim down!"
...
This reverts commit a335458d57
.
While this can be vastly trimmed down, what I did is not right.
It still depends on hb-face, hb-font, hb-blob, hb-set, and hb-map.
2 years ago
Behdad Esfahbod
a335458d57
[harfbuzz-subset.cc] Trim down!
2 years ago
Behdad Esfahbod
765a3551da
[face-builder] Minor cast
2 years ago
Behdad Esfahbod
3fff6d9084
[face-builder] Initialize face orders to -1
2 years ago
Behdad Esfahbod
805ce9ad3d
[face-builer] Protect against wrong face
...
In hb_face_builder_sort_tables.
2 years ago
Behdad Esfahbod
0acfd2b714
[indic-machine] Regenerate line numbers
2 years ago
Behdad Esfahbod
9704f8354e
Merge branch 'config-header'
2 years ago
Behdad Esfahbod
c1aae14a68
[features.h] Fix autotools build rules
2 years ago
Behdad Esfahbod
0545949f01
[gvar] Minor use array get_size()
2 years ago
Behdad Esfahbod
1bd386515c
[bit-set] Micro-optimize page_for
2 years ago
Behdad Esfahbod
b182e2808a
[bit-set] Don't clear pages when copying set
2 years ago
Behdad Esfahbod
f5307c3ba8
[map] Speed up is_real()
2 years ago
Behdad Esfahbod
301f6e4b47
[Coverage] Remove TODO
2 years ago
Behdad Esfahbod
dbbb8e8006
Revert "[map] Add hb_map_filter_invalid"
...
This reverts commit 8d7e921117
.
Surprisingly this slowed NotoNastaliqUrdu benchmark down by a couple
percent instead of speeding it up.
2 years ago
Behdad Esfahbod
8d7e921117
[map] Add hb_map_filter_invalid
...
Use it in one place.
2 years ago
David Corbett
260df1fa32
[indic] Support <U+0A02, U+0A40>
2 years ago
Behdad Esfahbod
8b533763c0
Use hb_len() instead of .len()
2 years ago
Behdad Esfahbod
e28e2dad03
[VarData] Don't clear memory we are going to fill in completely
2 years ago
Behdad Esfahbod
0e13b4abbc
[VarData] Optimize main loop slightly
2 years ago
Behdad Esfahbod
ad17c0acce
[VarData] Whitespace
2 years ago
Behdad Esfahbod
e7eb445d29
[VarData] Optimize longWord calculation
2 years ago
Behdad Esfahbod
f2c980be29
[VarData] Optimize wordCount calculation
...
6% speedup in RobotoFlex-Variable/900 benchmark.
2 years ago
Behdad Esfahbod
3641b0e01e
[VarData] Optimize serialize()
2 years ago
Behdad Esfahbod
e155f12307
[VarData] Minor save a variable
2 years ago
Behdad Esfahbod
5596a73087
[layout] Speed up ClassDefFormat2 intersects
2 years ago
Behdad Esfahbod
85e7263b38
[VariationStore] Minor access array directly
2 years ago
Behdad Esfahbod
41a8597f38
[layout] Simplify CoverageFormat2 intersects_coverage()
2 years ago
Behdad Esfahbod
1f4d8ccaed
[CoverageFormat2] Optimize intersects()
2 years ago
Behdad Esfahbod
c482b06108
[gpos] Optimize PairPosFormat1::intersects
2 years ago
Behdad Esfahbod
58e9df132f
[Device] Serialize VariationDevice zerocopy
2 years ago
Behdad Esfahbod
071a2bb4f7
[serialize] Support zerocopy while sharing
2 years ago
Behdad Esfahbod
44a5de3a97
[Device] Save a snap/revert
2 years ago
Behdad Esfahbod
93328cedfc
[Device] Save a map get()
2 years ago
Behdad Esfahbod
630b874ae6
[gsubgpos] Add a cache to intersected_class_glyphs
...
30% gain on subset_codepoints/NotoNastaliqUrdu-Regular.ttf/nohinting/1400.
2 years ago
Behdad Esfahbod
c044f4af3e
[gsubgpos] Remove wrong const
2 years ago
Behdad Esfahbod
2680be1f22
[gsubgpos] Don't set unnecessary funcs
2 years ago
Behdad Esfahbod
023f595dec
[cmap] Speed up DefaultUVS::copy even more
...
Another 14% on SourceHanSerifVF/10 benchmark.
2 years ago
Behdad Esfahbod
4ca6105108
[cmap] Remove double-min
2 years ago
Behdad Esfahbod
cd29147e30
[cmap] Minor cast
2 years ago