11517 Commits

Author SHA1 Message Date
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
Simon Cozens
b5ddc99fb9
linelike intersections (#3353)
* Replace linelike intersections with line-curve/line-line tests, fixes #3352

* Tests for #3352
2023-11-27 17:27:28 +00:00
Behdad Esfahbod
5ce71286ac [interpolatablePlot] Black 2023-11-26 22:12:42 -07:00
Behdad Esfahbod
b5f022c5fd [interpolatable] Try drawing kink point at wrong-contour-order
I'm not sure it's correct, but doesn't seem to harm.
2023-11-26 22:11:31 -07:00
Behdad Esfahbod
c3213e20bb [interpolatablePlot] Comment 2023-11-26 21:41:38 -07:00
Behdad Esfahbod
050c6398c5 [interpolatable] Try adjusting for wrong-start-point in kinking 2023-11-26 21:21:46 -07:00
Behdad Esfahbod
e27b36f5a5 [interpolatablePlot] Don't apply kink-fixer if wrong-start-point 2023-11-26 21:02:18 -07:00
Behdad Esfahbod
578a6a9c2e [interpolatablePlot] Propose fix for kinks! 2023-11-26 20:28:50 -07:00
Behdad Esfahbod
1c35a2f43c [interpolatablePlot] Better kink-artifact highlighting 2023-11-26 15:35:54 -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
20b96eca5e [interpolatablePlot] Fix drawing of composite glyphs
Showed error in --show-all.
2023-11-26 09:14:17 -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
61ac4d128c [interpolatablePlot] Draw circle around kink artifact 2023-11-25 20:05:17 -07:00
Behdad Esfahbod
14bcd22317 [interpolatablePlot] Second try at fixing page numbers 2023-11-25 19:12:12 -07:00
Behdad Esfahbod
0f3fe7876b [interpolatablePlot] Fix show-page-numbers 2023-11-25 19:01:16 -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
79cbbd3a12 [interpolatablePlot] Add kink to legend 2023-11-25 15:11:37 -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
bb2be572b2 [interpolatablePlot] Fix check 2023-11-25 11:29:29 -07:00
Behdad Esfahbod
8a7836dd6a [interpolatable] Comments 2023-11-25 09:12:23 -07:00
Behdad Esfahbod
4ed9a35498 [interpolatable] Fix up no-page-number in HTML 2023-11-25 08:42:01 -07:00