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
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