268 Commits

Author SHA1 Message Date
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
Behdad Esfahbod
21e48766fb [interpolatable] More tweak to "wrong_structure" 2023-11-25 22:37:57 -07:00
Behdad Esfahbod
738dbbce5b [interpolatable] Tweak kinks some more 2023-11-25 22:34:24 -07:00
Behdad Esfahbod
6be9ddc140 [interpolatable] Tweak heuristic for "wrong_structure"
To catch Fredoka's slash.
2023-11-25 21:48:29 -07:00
Behdad Esfahbod
6b94c919fd [interpolatable] Tweaks to kink detector 2023-11-25 21:42:28 -07:00
Behdad Esfahbod
754ccf2e74 [interpolatable] Comment 2023-11-25 21:31:26 -07:00
Behdad Esfahbod
ce1feccc07 [interpolatable] Adjust message for --show-all 2023-11-25 21:21:36 -07:00
Behdad Esfahbod
c641a72528 [interpolatable] Always show everything in --show-all 2023-11-25 21:20:12 -07:00
Behdad Esfahbod
4f895ccc60 [interpolatablePlot] Improve title page
Report parameters.
2023-11-25 18:19:15 -07:00
Behdad Esfahbod
81645121f8 [interpolatable] black; sigh
It's Saturday!
2023-11-25 18:05:22 -07:00
Behdad Esfahbod
574add6a6c [interpolatable] Reduce kinkiness default
Also don't update legend for kinks yet, to minimize diffs
while I regenerate reports.
2023-11-25 17:49:54 -07:00
Behdad Esfahbod
d95b5c382f [interpolatable] black 2023-11-25 17:38:13 -07:00
Behdad Esfahbod
21afd0f1ef [interpolatable] Fix up kink detection and --kinkiness 2023-11-25 17:37:30 -07:00
Behdad Esfahbod
6b6aee92df [interpolatable] Fix tests 2023-11-25 15:26:40 -07:00
Behdad Esfahbod
cc3bb5a4ab [interpolatable] Use UPEM to tune min kink handle length 2023-11-25 15:02:36 -07:00
Behdad Esfahbod
9e1842a8a8 [interpolatable] Add --kinkiness 2023-11-25 14:47:31 -07:00
Behdad Esfahbod
1ff792d2b4 [interpolatable] Add check to detect outline kinks 2023-11-25 14:47:18 -07:00
Behdad Esfahbod
8a7836dd6a [interpolatable] Comments 2023-11-25 09:12:23 -07:00
Behdad Esfahbod
73dcc66f0d [interpolatable] Don't write page numbers for HTML
For better diffing.
2023-11-25 08:22:18 -07:00
Behdad Esfahbod
34dbc21a3a [interpolatable] Don't show tolernace in legend for HTML 2023-11-25 00:14:26 -07:00
Behdad Esfahbod
8cdcadb403 [interpolatable] Don't show tolerance in HTML
Better for diffing.
2023-11-24 21:49:02 -07:00
Behdad Esfahbod
75fc570ec7 [interpolatable] Section html output by glyph
Makes it easier to search in the file, as well as
hopefully improve diffing.
2023-11-24 18:49:44 -07:00
Behdad Esfahbod
fa728bca25 Revert "[interpolatable] Adaptive weights"
This reverts commit cc77673eed73b9ea3f20cc56aa101d4fca3db256.

While this had improved RobotoSerif-Italic results,
it was very adhoc and had some adverse effects.
Reverting to find a better solution.
2023-11-24 15:57:42 -07:00
Behdad Esfahbod
cc77673eed [interpolatable] Adaptive weights
Seems to reduce false-negatives in RobotoSerif-Italic.
2023-11-24 12:25:31 -07:00
Behdad Esfahbod
077ad09108 [interpolatable] black friday! 2023-11-24 11:44:28 -07:00
Behdad Esfahbod
b6c795cfea [interpolatable] Some more improvements
Specially about reported tolerance. Report the original
tolerance.
2023-11-24 11:37:20 -07:00