ariza
d0aaba5c50
fixes oss-fuzz 20886
...
hb_set_t::resize () is needed after compact()
5 years ago
Ebrahim Byagowi
05a25c1a5b
[cff] minor, remove unused fields
5 years ago
Ebrahim Byagowi
9fe0dc3464
[draw] Pass draw_helper_t itself around instead recreating it
...
Specially helpful if we want to change the design
5 years ago
Ebrahim Byagowi
1b8b863898
minor
5 years ago
Ebrahim Byagowi
4cdaa9d1f4
[glyf] Simplify contour end logic
...
So no need for infinite loop here
5 years ago
Ebrahim Byagowi
132fcfbc47
[fuzz] minor don't abort main.cc when the file was empty or not found
5 years ago
Ebrahim Byagowi
84163c83d3
[draw] Skip commands and paths not contributing anything
...
They aren't contributing to rendering and making issue for stroking, let's skip them
ourselves as Skia does also https://skia-review.googlesource.com/c/skia/+/268166
They are useful for extracting extents and so which that functionality won't be effected by this change.
5 years ago
Ebrahim Byagowi
073d4954e0
[draw] Port glyf path extract to draw_helper_t
5 years ago
Ebrahim Byagowi
0ebf3a4e62
[draw] Move common CFF path building logic to draw_helper_t
5 years ago
Michiharu Ariza
c400cb8863
Re-implement hb_set_t::del_range ( #2194 )
...
* optimize hb_set_del_range()
fix issue #2193
* fixed bug & added tests
* coding & comment tweaks
5 years ago
Ebrahim Byagowi
c21eb86bfd
Merge pull request #2163 from harfbuzz/absolute-link
...
added add_link_abs()
5 years ago
ariza
4081439d2a
tweak reflecting review & add test cases
5 years ago
Ebrahim Byagowi
152000d9c7
[fuzz] Practice variations on font object
5 years ago
Ebrahim Byagowi
036d868913
[draw] Add a fuzzer
...
Specially checks correctness of the API semantics:
* no move happens when a path is already opened with move-to.
* no path will be left open and close-path will happen at the end of opened paths.
* no path opens with a move-to and will be closed with no length.
* paths start and ending points matches.
* no line/quadratic/cubic command will be issued when no path is started.
5 years ago
ariza
de896278f7
coding & comment tweaks
5 years ago
Ebrahim Byagowi
2f97aa65e5
[cff] Make sure previous is ended on processing a seac
5 years ago
Ebrahim Byagowi
acc2d4738e
[cff] Make path extract easier to read and more defensive
5 years ago
Ebrahim Byagowi
b59eb54f70
[glyf] Refactor, move get_points inside Glyph
5 years ago
ariza
173b745da8
fixed bug & added tests
5 years ago
ariza
a5012e97c4
optimize hb_set_del_range()
...
fix issue #2193
5 years ago
Ebrahim Byagowi
96b71e802f
[fuzz] make the custom loader to handle multiple files
...
Actually this was the way it used to work :)
5 years ago
Ebrahim Byagowi
1f5a54c768
[gvar] fix infinite loop introduced by 11f3fca
...
The attempt on removing end_points had made the code unreadable
and has intrdouced infinite, fixed by making the code clear what
it tries to achieve.
5 years ago
Ebrahim Byagowi
f00eb4ebfa
[gvar] Don't compare against Null address
5 years ago
Ebrahim Byagowi
19b78d56cd
[gvar] Accept coord_count even if is higher than gvar's axisCount
5 years ago
Ebrahim Byagowi
197e2e929b
[gvar] Return gracefully even if gvar wasn't used at all
5 years ago
Ebrahim Byagowi
346ab9884b
[gvar] Return gracefully even if coords_count != gvar's axis count
...
It shouldn't be that common to have the situation, even so, no need to
reject entire a glyph even if gvar isn't used.
5 years ago
Ebrahim Byagowi
5f23a76e99
[cff] Don't remove coords const qualification
...
We should find some way to audit all the const removals, perhaps by
enabling -Wold-style-cast warning on the project and turning all the
implicit const removals to const_cast.
5 years ago
Michiharu Ariza
ff5223ba60
remove invalid glyphs from closure ( #2188 )
...
fix issue #2186
5 years ago
Ebrahim Byagowi
e17fd0d91c
[tools] More on py3 compatibility
5 years ago
Ebrahim Byagowi
0cf050a7b1
[draw] Merge consequent move-to commands of CFF/CFF2
5 years ago
Ebrahim Byagowi
86bd5a0ba1
[draw] End CFF paths with a line-to
...
Issue a line-to command when start and end point of a path isn't same, matches freetype also.
5 years ago
Ebrahim Byagowi
a46ba770ab
[number] minor
5 years ago
ariza
4aa354beba
chain second OffsetTo::serialize_copy() to first
5 years ago
ariza
6120f50c8f
fix Head with link.bias
5 years ago
ariza
e65bff0943
workaround whence_t as bit-field
5 years ago
ariza
1aed6d223c
fix whence=Head; position as 28 bits
5 years ago
ariza
4ca8e0d989
re-implement Tail; rewrote name table with it
5 years ago
ariza
c1313e4be2
minor: undid unintended change
5 years ago
ariza
9c65680b48
rename enums to avoid conflict on win
5 years ago
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