ariza
555f6f1daa
merge add_link_abs() into add_link()
5 years ago
ariza
017cd945bf
added add_link_abs()
5 years ago
Ebrahim Byagowi
07504569d5
[gsub] minor format
5 years ago
Garret Rieger
411225426f
Fix glyph closure for alternate substitution.
...
It was not filtering on the glyphs to be retained.
5 years ago
Ebrahim Byagowi
da37880e17
[draw] Add a private bit field instead null-checking quad-to callback
...
This doesn't imply the the design is good or stable just is better
to not fail due to null quad-to callback so as our quad-cubic curves
translation is currently table limited which can be revisited anytime.
5 years ago
Ebrahim Byagowi
79b2b8a91f
minor
5 years ago
Ebrahim Byagowi
8c652f72fc
Minor, switch to https links where possible
5 years ago
Ebrahim Byagowi
bbcbcafc25
[tool] Minor, move input files link
5 years ago
Ebrahim Byagowi
83db1e117e
[ci] Compatibility with Python 3
...
Disabled CMake test runners as it goes for Python 2 and updated the bots
Install Python 3 on macOS 10.12 bot
5 years ago
Ebrahim Byagowi
8d19907704
Remove python2 support from tests/utils scripts
5 years ago
Rico Tzschichholz
2c9fbf5561
Improve GIR build
5 years ago
Ebrahim Byagowi
bd13470f23
[ci] Update Ubuntu bots versions
5 years ago
Qunxin Liu
493e40ff78
[subset] add one empty byte to glyf table
...
if it's going to end up empty after subsetting
This will make OTS happy and match what fontTools is doing now.
5 years ago
Ebrahim Byagowi
a7dec0cb51
[glyf] Tweak path_builder_t
5 years ago
Ebrahim Byagowi
d52ea2a42c
[glyf] minor
5 years ago
Ebrahim Byagowi
3b0c58f811
[glyf] minor, use private font coords to simplify
5 years ago
Ebrahim Byagowi
dcd2729e71
[glyf] Move contour_bounds_t into scope it is actually used
5 years ago
Ebrahim Byagowi
8bb47fa17d
[glyf] minor, spacing
5 years ago
Ebrahim Byagowi
21a5fe4f09
[glyf] Make returning phantoms to not require another vector
5 years ago
Ebrahim Byagowi
5c03fbe7e0
[glyf] do a phantom only iteration when possible
5 years ago
Ebrahim Byagowi
11f3fca01d
[glyf/gvar] Remove need of passing end points vector around
5 years ago
Ebrahim Byagowi
0f2c2d989b
[glyf] Push consumer machine one more level further
5 years ago
Ebrahim Byagowi
11f5f7c59c
[glyf] Adopt a state machine like style for the path builder
...
Toward making glyf path reader alloc free at least on gvar absence.
5 years ago
Ebrahim Byagowi
60f8f384f9
[glyf] Switch to ttf-parser's glyf to path algorithm
...
It consumes each point at a time and doesn't need to know contour size before hand
5 years ago
ariza
3c792c2aa5
add test cases for hb_unwrap_type
5 years ago
ariza
168ceeac49
renamed to hb_unrwap_type(); now recursive
5 years ago
ariza
71552ecc26
add hb_get_type
5 years ago
ariza
6585846352
pop_pack(share=false) in end_serialize()
...
issue #2177
5 years ago
Michiharu Ariza
39fb57c0e4
add share option to pop_pack() ( #2176 )
...
as a solution for #2164
5 years ago
ariza
9c6499d9f4
rewrite read_points() to take lambda & consts args
...
replacing awkward x/y_setter_t structs
5 years ago
Ebrahim Byagowi
a94d1af193
[fuzz] minor style fixes
5 years ago
Ebrahim Byagowi
1c015d3e9f
[fuzz] minor fuzzer case move, oops
5 years ago
Ebrahim Byagowi
49341faee2
[fuzz] minor, move two fuzzer cases to their correct place
5 years ago
Behdad Esfahbod
d663e28af1
[serialize] Catch signedness overflows in check_assign()
...
Should address https://github.com/harfbuzz/harfbuzz/pull/2163#pullrequestreview-355137936
5 years ago
Ebrahim Byagowi
97229244eb
[fuzzer] Fix hb-set-fuzzer minor overflow issue
...
Size shouldn't be smaller than the struct not its pointer size.
Fixes https://crbug.com/oss-fuzz/20655
5 years ago
Garret Rieger
7b42403c1c
Add explicit values to the set fuzzer enums.
5 years ago
Garret Rieger
e805923310
Add a few basic seeds for the set fuzzer.
5 years ago
Ebrahim Byagowi
ff984ed3cd
Use multiplication to avoid undefined behaviour per clang
...
Newer versions of MSVC with /we4146 don't like putting negative sign behind a
unsigned number as https://github.com/harfbuzz/harfbuzz/pull/2069
That however have made https://crbug.com/1050424 this complain:
src/hb-ot-color-sbix-table.hh:304:28: runtime error: negation of -2147483648 cannot be represented in type 'int';
cast to an unsigned type to negate this value to itself
which apparently can be fixed using this change.
Let's see if this won't make another ubsan complain!
5 years ago
Ebrahim Byagowi
21e1b1310a
[colr] minor style fix
5 years ago
Ebrahim Byagowi
cbb45c3ee7
[subset/colr] minor improve to resolve msvc complain
...
MSVC says,
hb-ot-color-colr-table.hh(215): warning C4700: uninitialized local variable 'new_record' used [build\harfbuzz-subset.vcxproj]
harfbuzz-subset.vcxproj -> build\Debug\harfbuzz-subset.lib
5 years ago
Garret Rieger
bca9bc6b92
Add hb-set-fuzzer.
...
It fuzzes all of the hb_set process methods (intersection, subtraction, union, and symmetric difference).
5 years ago
Ebrahim Byagowi
352ac63ef9
Fix an unlikely UAF on the deprecated _set_glyph_func API
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/2168
5 years ago
Ebrahim Byagowi
6a390df8af
[tools] Print unicode links on gen-* tools output
...
As Behdad's review
5 years ago
Evgeniy Reizner
4dc87365d7
Add links to files used by python scripts.
...
Closes #2150
5 years ago
Ebrahim Byagowi
40166eb0e5
[var] Fix the just introduced hb_font_set_var_coords_design storing bug
...
The memcpy call was using the current coords count which is zero initially so no copy at all.
Sad that no test has caught it, should see why, will however with the upcoming style API tests.
5 years ago
Ebrahim Byagowi
5c1a023f67
[tool] Optimize COLR glyph dump
...
Move palette colors fetching out of gid iteration so not
fetching all the colors of a palette each time.
5 years ago
Ebrahim Byagowi
0b76e8130e
Don't use _normalize_variations to avoid twice axis fetch
5 years ago
Ebrahim Byagowi
ab2d3ec542
[var] Implement hb_font_get_var_coords_design
...
Hold design coords and simulate when normalized coords are set directly.
5 years ago
Garret Rieger
5a10f3a055
Use vector instead of map during page compaction in hb-set.
5 years ago
Garret Rieger
2742c81624
Fix page_map corruption in hb_set_t during process().
...
If a process operation results in less pages then the current set has, it will likely corrupt the page_map since it overwrites page_map entries ahead of where it's processing. This fixes that problem by removing page_map entries that will be dropped. Then dropping orphaned pages and re-indexing retained pages.
5 years ago