Garret Rieger
a652281ed6
[subset] Fix fuzzer timeout.
...
Fixes https://oss-fuzz.com/testcase-detail/5979721620652032 . Timeout was caused by degenerate map insert behaviour due to poor integer hash function. Presize the map to avoid it. Also fixes collect_mapping() for cmap format 13.
1 year ago
Behdad Esfahbod
208c9490cb
[VarComposite] Limit number of axes that are copied
...
Bandaid for https://oss-fuzz.com/testcase-detail/4591122882887680
1 year ago
Behdad Esfahbod
5872bdf64d
[vector] Add copy-constructor for array_t's
1 year ago
Chun-wei Fan
42aba5ff30
harfbuzz-config.cmake.in: Support Windows usage
...
Apply the appropriate library prefix/suffix by whether we are building
as a statib build in Meson, or by using
${CMAKE_[SHARED|IMPORT]_LIBRARY_PREFIX} and
${CMAKE_[SHARED|IMPORT]_LIRBARY_SUFFIX} as appropriate according to
the target platform for shared builds.
1 year ago
Behdad Esfahbod
84354d3f23
[cff] When max-ops is reached return false
...
Slight speedup too.
2 years ago
Behdad Esfahbod
2655b7607c
[map] Micro-optimize
...
This shows a speedup.
2 years ago
Behdad Esfahbod
12b0680e60
[map] Fix set()
...
This was broken in 2133aa2407
.
We have to keep probing over tombstones.
2 years ago
Behdad Esfahbod
4056315c86
[font] Remove redundant avar mapping line
...
The avar mapping happens in hb_ot_var_normalize_coords() call.
2 years ago
Behdad Esfahbod
592a3d0e96
Merge pull request #4237 from harfbuzz/layout-font-extents
...
[layout] Add hb_ot_layout_get_font_extents()
2 years ago
Khaled Hosny
0d354e0442
[layout] Add tests for baseline 2 APIs
2 years ago
Behdad Esfahbod
e047b1abbc
[layout] Improve docs
2 years ago
Behdad Esfahbod
132391ad62
[layout] Add test for font_extents
2 years ago
Behdad Esfahbod
6996e64f72
[BASE] Sanitize and get_min_max fixups
...
Seems to work now.
2 years ago
Behdad Esfahbod
02e0e9394b
[layout] Fetch default font extents if localized extents not found
2 years ago
Behdad Esfahbod
8ccc1ff21e
[layout] Mark language as nullable
...
GI needs it apparently.
2 years ago
Behdad Esfahbod
792ca22ca3
[layout] Document new API
2 years ago
Behdad Esfahbod
0894813a38
[layout] Add "2" version of BASE table API
...
...that do the script/language resolution.
Part of https://github.com/harfbuzz/harfbuzz/pull/4237
Ref https://github.com/harfbuzz/harfbuzz/issues/3439
2 years ago
Behdad Esfahbod
3e110c69c4
[layout] Add hb_ot_layout_get_font_extents()
...
Untested.
Fixes https://github.com/harfbuzz/harfbuzz/issues/3290
2 years ago
Simon Cozens
2f21dc23b5
[wasm] [docs] Improve build flags information
2 years ago
Simon Cozens
134cc8edfa
[wasm] [docs] How to build
2 years ago
Behdad Esfahbod
5543d05885
[subset] Use vector instead of map for glyph bounds ( #4232 )
...
* [subset] Use vector instead of map for glyph bounds
Is faster.
Part of https://github.com/harfbuzz/harfbuzz/issues/4231
* [subset] initialize bounds_vec value to 0xFFFFFFFF
Some non-EMPTY glyph might have 0 bounds width/height
---------
Co-authored-by: Qunxin Liu <qxliu@google.com>
2 years ago
Behdad Esfahbod
ccfd7ef08c
Merge pull request #4131 from harfbuzz/wasm
...
[wasm] WebAssembly shaper
2 years ago
Behdad Esfahbod
6ed792ef4b
[meson] Report WebAssembly build
2 years ago
Simon Cozens
56af88d048
[wasm] More thorough API docs
2 years ago
Behdad Esfahbod
c248fd9133
[hash] Comment
2 years ago
Behdad Esfahbod
42f4dab8db
[hash] Switch to Knuth multiplicative hash
...
Wow, the old adhoc one was why the cmap test was timing out!
2 years ago
Behdad Esfahbod
0270e3e974
[map] Reinstate quadratic probing
2 years ago
Behdad Esfahbod
19b628bdf0
Revert "[map] Implement Robinhood hashing"
...
This reverts commit 7056178568
.
2 years ago
Behdad Esfahbod
18c3ba5018
[map] Implement Robinhood hashing
...
Numbers are not improved though. :(
2 years ago
Behdad Esfahbod
2133aa2407
[map] Inline code for set()
2 years ago
Behdad Esfahbod
5bf5188ea2
[map] Simplify del()
2 years ago
Behdad Esfahbod
2ffec3a6f4
[map] Shuffle fetch_item
2 years ago
Behdad Esfahbod
1dc99128b9
[map] Separate has() code from set() code
2 years ago
Behdad Esfahbod
2dd0803c85
[map] Downgrade from quadratic to linear probing
2 years ago
Behdad Esfahbod
498197671a
[map] Write get() in terms of has()
2 years ago
Qunxin Liu
f37941bb52
[instancer] add tests for instancer-solver from python test suite
...
Also fix bug in the solver code
2 years ago
Qunxin Liu
39ac79a7f5
address review comments
2 years ago
Qunxin Liu
58f68dd37a
[instancer] wrap hb_subset_input_Set_axis_range() under experimental
...
Also add notes: it's not actually working yet.
2 years ago
Qunxin Liu
f3a3c3b29d
fix bot
2 years ago
Qunxin Liu
efc77dc68f
[instancer] update code for collecting FeatureVariationRecord
2 years ago
Qunxin Liu
bf298e5050
[instancer ]update OS_2/post/glyf tables to accept Triple for axes positions
2 years ago
Qunxin Liu
51c7451bb5
[instancer] update fvar table to accept Tripe for axes positions
2 years ago
Qunxin Liu
bf46d566f9
[instancer] update STAT table to accept Triples for axes positions
2 years ago
Qunxin Liu
779e8ba080
[instancer] update subset-plan.cc to accept Triple as axes positions
2 years ago
Qunxin Liu
22cca43ded
[instancer ]update internal hashmap to use Triple instead of single value
...
-Added hb-subset-instancer-solver.hh file and moved Triple struct to the
head file
2 years ago
Qunxin Liu
0799afe2b6
[instancer] Add hb_subset_input_set_axis_range() API
2 years ago
Behdad Esfahbod
5d543d6422
Merge pull request #4228 from harfbuzz/better-hash
...
Better hash
2 years ago
Behdad Esfahbod
5d0cc0062a
[hash] Disable int hash as it has negative performance gain
2 years ago
Behdad Esfahbod
1fbb08584b
[hash] Adjust prime number
...
Previous one wasn't a prime. Ouch!
2 years ago
Behdad Esfahbod
9cc7eb80ff
[hash] Speed-up int64 hash
2 years ago