Simon Cozens
57fb47de3a
Allow for merging of NULL anchors ( #3248 )
...
* A failing test for #3247
* Fix up NULL entry/exit records on merge, fixes #3247
2023-08-07 17:12:12 +01:00
Cosimo Lupo
a8d5d45b39
Merge pull request #3241 from fonttools/better-packer
...
[otBase/packer] Allow sharing tables reached by different offset sizes
2023-08-04 16:06:15 +01:00
Cosimo Lupo
d2fd4dfb24
C_O_L_R_test: add test for paint pointed to by both 3- and 4-byte offsets
2023-08-04 11:45:20 +01:00
Cosimo Lupo
48ae9cbf1c
use 0 for sidebearing sparse metrics sentinel
...
font sources only allow to specify advances, the sidebearings are computed. Makes more sense for the sparse metrics to have 0 for the sidebearings as the glyph that's meant to be 'sparse' is most likely empty with no outlines
2023-08-02 15:12:26 +01:00
Cosimo Lupo
ecfc5eeeb7
varLib: use sentinel to mark glyph metrics as sparse
...
as discussed in https://github.com/googlefonts/ufo2ft/issues/501
2023-08-02 14:54:47 +01:00
Cosimo Lupo
653bccdb02
varLib_test: add test for variable CFF2 with empty glyph in sparse master
...
Three masters, Regular and Bold have glyphs .notdef, a, e; Medium only has .notdef (but empty, no contours) and e.
2023-08-02 14:01:01 +01:00
Cosimo Lupo
2dcdb17e90
instancer_test: add test for null ConditionSet offset
2023-07-20 11:15:32 +01:00
Behdad Esfahbod
b0cf3e1ebe
[instancer] Allow null ConditionSet
...
Fixes https://github.com/fonttools/fonttools/issues/3211
2023-07-19 19:55:42 -06:00
Behdad Esfahbod
b14a29c353
[varLib.merger] Support sparse CursivePos
...
Part of https://github.com/fonttools/fonttools/issues/3168
2023-07-18 07:14:25 -06:00
Cosimo Lupo
8846b57304
Merge pull request #3201 from NightFurySL2001/patch-1
...
Convert panoseDefault to namespace object
2023-07-12 19:24:16 +01:00
Behdad Esfahbod
fb56e7b7c9
Merge pull request #3179 from fonttools/L4-fixes
...
L4 fixes
2023-07-11 10:47:59 -04:00
Behdad Esfahbod
0893ba93f8
[instancer/L4] Address review comments
2023-07-11 08:46:46 -06:00
NightFurySL2001
e97aab69eb
Fix test bug
2023-07-08 00:10:12 +08:00
NightFurySL2001
20236624e1
Add panose test for fontbuilder
2023-07-07 23:34:02 +08:00
Behdad Esfahbod
09464e5825
Comment
2023-06-27 09:53:37 -06:00
Behdad Esfahbod
9974a74a18
[cubic-glyf] Fix drawPoints() contour ending with cubic offCurve
...
Fixes https://github.com/fonttools/fonttools/issues/3189
2023-06-27 11:48:25 -04:00
Behdad Esfahbod
1138e5b0df
[Tests] Add cmap to dot-cubic.ttf
...
So we can test it with svgPathPen.
2023-06-27 08:54:42 -06:00
Behdad Esfahbod
4ae0a93692
black
...
I'm sorry.
2023-06-27 08:49:31 -06:00
Behdad Esfahbod
9983ffe27a
[cubic-glyf] Fix tests
...
Ouch.
2023-06-27 08:47:56 -06:00
Just van Rossum
a912f7d16f
Add minimal avar test
2023-06-25 16:09:05 +02:00
Behdad Esfahbod
10bc7a804a
[instancer/L4] Implement an optimization
2023-06-21 17:52:12 -06:00
Behdad Esfahbod
17761cc616
[instancer/L4] Add tests
2023-06-21 15:09:56 -06:00
Behdad Esfahbod
204532aee3
[instancer/L4] Misc fixes and fix tests
2023-06-21 15:09:56 -06:00
Behdad Esfahbod
023ad3a363
[instancer/L4] Fix crossing calculation
2023-06-21 15:09:56 -06:00
Khaled Hosny
2f97f1abe9
Rename volto to voltLib.voltToFea
2023-06-14 20:38:18 +03:00
Khaled Hosny
de76e71b7b
Add Volto
...
A tool for converting VOLT VTP projects to feature files.
Essentially https://github.com/TiroTypeworks/TiroTools/tree/master/Volto
with minor modifications to fit into FontTools.
2023-06-14 09:17:47 +03:00
Cosimo Lupo
b3ce0979cb
Merge pull request #3123 from fonttools/avar2-designspace
...
[designspace] Add avar2 mapping support
2023-06-08 12:58:51 +01:00
خالد حسني (Khaled Hosny)
9ad4a36309
Merge pull request #3130 from fonttools/fealib-ligcaret-variable
...
[feaLib] Support variable ligature caret position
2023-06-08 14:58:23 +03:00
Cosimo Lupo
dfec4abf6d
glyf: use 'round' parameter in _getCoordinatesAndControls
...
as Behdad suggested in review
2023-06-08 11:47:47 +01:00
Cosimo Lupo
1ca554332c
_getCoordinatesAndControls: make sure coords are rounded toInt() as gvar expects
...
ufo2ft will no longer send varLib already-rounded master glyf tables (to give it an opportunity to compute implied oncurves on the pre-rounded coords) so when retrieving coordinates off the glyf table in order to compute gvar deltas we have to round
2023-06-07 18:05:48 +01:00
Cosimo Lupo
4298c28e3c
add 2nd test contour to expose bug in dropImpliedOnCurvePoints
...
there's a bug whereby we don't correctly drop impliable oncurve if it occurs on the first point of the second contour.. because we forgot to update the contour start = last + 1...
2023-06-06 17:00:16 +01:00
Cosimo Lupo
5b93100616
also check endPtsOfContours in dropImpliedOnCurvePoints
...
as per review https://github.com/fonttools/fonttools/pull/3147#discussion_r1214708207
Also, don't do same work multiple times when dropping points from flags/endPtsOfContours arrays since these are supposed to be the same for all interpolatable glyphs
2023-06-05 12:11:17 +01:00
Cosimo Lupo
0690703b86
varLib: add --drop-implied-oncurves option
...
For the test, I used the Tests/varLib/data/Build.designspace as starting point, modified the 'a' glyph so that 1 on-curve point (the first one) becomes impliable for all the masters.
2023-06-02 15:50:32 +01:00
Cosimo Lupo
6a276d9f6a
dropImpliedOnCurvePoints: raise if incompatible, skip empty/composites
2023-06-02 13:51:28 +01:00
Cosimo Lupo
a039e1dda8
_g_l_y_f_test: add tests for dropImpliedOnCurvePoints
2023-06-01 19:27:32 +01:00
Behdad Esfahbod
65bc6b7cb0
[designspaceLib/avar2] Remove Windows hack in tests
2023-06-01 12:12:34 -06:00
Behdad Esfahbod
ddf16c9130
[designspaceLib/avar2] Apply review comments
2023-06-01 11:54:43 -06:00
Cosimo Lupo
3bbc19abb1
TTGlyphPen: do not error with empty contours, simply ignore them
...
Fixes https://github.com/googlefonts/fontmake/issues/1001
2023-05-31 11:58:14 +01:00
Behdad Esfahbod
77c00719ba
[designspaceLib/avar2] Add split test
2023-05-30 23:39:19 -06:00
Behdad Esfahbod
0184c91ce8
[designspaceLib/test] Fix Windows bot failure
2023-05-30 13:51:43 -06:00
Behdad Esfahbod
a08acf41f8
[varLib/avar2] Omit identity VarIdx map
2023-05-30 13:22:12 -06:00
Behdad Esfahbod
d915f08e76
[varLib/avar2] Don't require base master to be specified explicitly
...
We can deduce it as empty mapping.
2023-05-30 13:13:49 -06:00
Behdad Esfahbod
ff7f49a94c
[varLib/avar2] Add compile test
2023-05-30 13:13:49 -06:00
Behdad Esfahbod
aabb26ed69
[designspaceLib/avar2] Add roundtrip test
2023-05-30 12:21:42 -06:00
Khaled Hosny
a43f824af9
[feaLib] Support variable ligature caret position
...
Allow variable scaler in ligature caret position and build
CaretValueFormat3 with DeviceTable. Does not support non-variable device
table, but can be added if someone really really wants it.
2023-05-30 20:21:21 +03:00
Cosimo Lupo
0bf84f9c7b
Merge pull request #3129 from fonttools/privData_bytes
...
privData needs to padded with bytes not str
2023-05-30 12:10:30 +01:00
Behdad Esfahbod
3ba7e6d706
[instancer-solver] Fix a bug
...
Fixes https://github.com/fonttools/fonttools/issues/3139
2023-05-29 17:39:02 -06:00
Behdad Esfahbod
e587942b68
[designspaceLib/avar2] Add tests
2023-05-28 17:35:10 -06:00
Ben Kiel
fb74c16d47
Ran black on code
2023-05-28 08:28:28 -05:00
Ben Kiel
c30f4e5074
fix lint error
2023-05-28 08:19:54 -05:00