243 Commits

Author SHA1 Message Date
Behdad Esfahbod
96c9bd236f [interpolatable] Move tolerance calc into the test 2023-12-02 07:49:52 -05:00
Behdad Esfahbod
2dc53dbc4d [interpolatable] Fixup 2023-12-01 18:32:32 -05:00
Behdad Esfahbod
ee0936a781 [interpolatable] Fixup 2023-12-01 18:15:02 -05:00
Behdad Esfahbod
97d571cd66 [interpolatable] Fixup 2023-12-01 00:14:15 -05:00
Behdad Esfahbod
8000927cbe [interpolatable] Move another test to its own file 2023-11-30 23:59:40 -05:00
Behdad Esfahbod
7636a2ebde [interpolatable] Fixup 2023-11-30 23:41:30 -05:00
Behdad Esfahbod
a97853871e [interpolatable] Refactor one test 2023-11-30 23:39:46 -05:00
Behdad Esfahbod
c984acc070 [interpolatable] Don't continue test if open contours 2023-11-30 23:29:37 -05:00
Behdad Esfahbod
7993bad2c4 [interpolatable] Add a Glyph class 2023-11-30 23:26:25 -05:00
Behdad Esfahbod
67a8706ed4 [interpolatable] Move some code into a helper file 2023-11-30 17:06:22 -05:00
Behdad Esfahbod
e3887b724d [interpolatable] Fix epsilon handling 2023-11-30 15:58:18 -05:00
Behdad Esfahbod
207a67e7d5 [interpolatable] Fix bots 2023-11-30 13:32:28 -05:00
Behdad Esfahbod
abc0e8e1c7 Merge branch 'interpolatable-overweight'
See https://github.com/fonttools/fonttools/pull/3359 for commit trail
2023-11-30 13:07:54 -05:00
Behdad Esfahbod
8ad4df935e [interpolatable] Bring back into shape of the main branch 2023-11-30 13:05:35 -05:00
Behdad Esfahbod
4581d93c26 [interpolatable] A rename 2023-11-30 12:50:53 -05:00
Behdad Esfahbod
182c6d24d4 [interpolatable] Minor names var use repr 2023-11-30 12:49:56 -05:00
Behdad Esfahbod
16a096f42a Disable overweight test 2023-11-30 12:48:46 -05:00
Behdad Esfahbod
13ef1ba2f0 [interpolatable] Add (unused) transform_from_stats 2023-11-29 22:58:13 -05:00
Behdad Esfahbod
e516d8af48 Another deadend 2023-11-29 22:49:53 -05:00
Behdad Esfahbod
8f021c5e11 ... 2023-11-29 18:03:50 -05:00
Behdad Esfahbod
9506c3732a [interpolatable] ... 2023-11-29 16:51:50 -05:00
Behdad Esfahbod
456097513c [interpolatable] Revert back some 2023-11-29 16:51:50 -05:00
Behdad Esfahbod
875d17c3f0 [interpolatable] Another approach 2023-11-29 16:51:50 -05:00
Behdad Esfahbod
41ed903d45 [interpolatable] One more try at overweight 2023-11-29 16:51:50 -05:00
Behdad Esfahbod
a15a9a946f [interpolatablePlot] Tweak overweight
Still far from working.
2023-11-29 16:51:50 -05:00
Behdad Esfahbod
447e8b865d black 2023-11-29 16:51:50 -05:00
Behdad Esfahbod
4f914dbbc2 [interpolatable] Calling it a night... 2023-11-29 16:51:49 -05:00
Behdad Esfahbod
219f1ed2f5 . 2023-11-29 16:51:49 -05:00
Behdad Esfahbod
8d9931a1e1 [interpolatable] Start adding "overweight" test 2023-11-29 16:51:49 -05:00
Behdad Esfahbod
4c222bd044 [interpolatable] Fix stddev 2023-11-29 14:04:04 -07:00
Cosimo Lupo
abd34de8b7
[interpolatable] fix TypeError "not all arguments converted during string formatting"
https://github.com/fonttools/fonttools/actions/runs/7018011691/job/19092495402?pr=3354#step:5:3503
2023-11-28 11:41:21 +00:00
Behdad Esfahbod
6ae29fe386
Interpolatable structure area (#3356)
[interpolatable] Add an "underweight" check

Remove the old, black-magic, "wrong_structure" test.

See https://github.com/fonttools/fonttools/pull/3356 for commit trail.
2023-11-27 20:21:16 -07:00
Behdad Esfahbod
5738b4638a [interpolatable] Remove fixing countour start order for kinks
This was broken if multiple master-pairs tried to do the
same. Just leave it.
2023-11-27 13:10:05 -07:00
Behdad Esfahbod
050c6398c5 [interpolatable] Try adjusting for wrong-start-point in kinking 2023-11-26 21:21:46 -07:00
Behdad Esfahbod
3780a36e29 [interpolatable] Tweak non-default --kinkiness 2023-11-26 15:25:17 -07:00
Behdad Esfahbod
5dfc9201fc [interpolatable] Tweak kinkiness again 2023-11-26 15:18:06 -07:00
Behdad Esfahbod
2e20c76e32 [interpolatable] Black 2023-11-26 14:59:36 -07:00
Behdad Esfahbod
758b16fdf0 [interpolatable] Make the kink-detector a lot more conservative
Most kinks are not visible at regular outline sizes. We
don't want to pollute the report with them.

One can still use the --kinkiness parameter to get more
kinky.
2023-11-26 14:45:06 -07:00
Behdad Esfahbod
79522fcd31 [interpolatable] Reduce DEFAULT_KINKINESS_LENGTH again :(
Means more kinks. But this was necessary to get
EBGaramond-Italic glyph "F" to show the really bad kinks.
2023-11-26 12:50:18 -07:00
Behdad Esfahbod
8ec28bcafa [interpolatable] Different way of weeding out small kinks
Seems to work better.
2023-11-26 12:24:16 -07:00
Behdad Esfahbod
048aa59c8e [interpolatable] Fix copilot snafu 2023-11-26 11:29:16 -07:00
Behdad Esfahbod
f45eac6e5a [interpolatable] Less corner kinks hopefully 2023-11-26 11:26:03 -07:00
Behdad Esfahbod
b3697e26dd [interpolatable] More variable reuse 2023-11-26 11:23:53 -07:00
Behdad Esfahbod
ae0fac9297 [interpolatable] Don't report kinks for sharp corners 2023-11-26 10:58:59 -07:00
Behdad Esfahbod
0e1113c1bb [interpolatable] Minor variable reuse 2023-11-26 10:51:00 -07:00
Behdad Esfahbod
6a87a3cb2f [interpolatable] Reduce min kink handle length 2023-11-26 10:08:20 -07:00
Behdad Esfahbod
e4aae525d9 [interpolatable] Allow --kinkiness=0 2023-11-26 09:58:29 -07:00
Behdad Esfahbod
db77f3f592 [interpolatable] Revert back kinkiness to .5
I need a better, adaptive, fix to weed out the unimportant ones.
2023-11-26 09:49:33 -07:00
Behdad Esfahbod
ed8056e7a2 [interpolatable] Reduce kinkiness default a bit 2023-11-26 09:35:10 -07:00
Behdad Esfahbod
8b36992761 [interpolable] Simplify 2023-11-25 23:03:57 -07:00