243 Commits

Author SHA1 Message Date
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
Behdad Esfahbod
f99774acf0 [interpolatable] Another fixup 2023-11-24 00:16:22 -07:00
Behdad Esfahbod
25704bfe00 [interpolatable] Centralize DEFAULT_TOLERANCE 2023-11-23 23:42:41 -07:00
Behdad Esfahbod
18dcfb6593 [interpolatable] Black 2023-11-23 23:30:33 -07:00
Behdad Esfahbod
1be97cdc17 [interpolatable] Another tweak
Resuls are mostly positivel
2023-11-23 23:23:19 -07:00
Behdad Esfahbod
a0941efecb [interpolatable] Report tolerance 2023-11-23 22:01:14 -07:00
Behdad Esfahbod
8019c7ba0a [interpolatable] Fix thinko 2023-11-23 20:58:50 -07:00
Behdad Esfahbod
22de9ef3d8 [interpolatable] Try harder matching contours
This improves a bunch of .notdef glyphs.
Only adverse effect is in AdventPro's --glyphs uni2116
2023-11-23 09:21:40 -07:00
Behdad Esfahbod
4591e255d2 [interpolatable] Fixup 2023-11-23 08:52:19 -07:00
Behdad Esfahbod
0c660e31f2 [interpolatable] Refactor some code 2023-11-23 08:50:52 -07:00
Behdad Esfahbod
cfdbe69b4a [interpolatablePlot] Add a title page 2023-11-23 08:04:31 -07:00
Behdad Esfahbod
b30da672f0 Revert "[interpolatable] Use absolute sqrt area, not signed"
This reverts commit 772d1f8c7895f9b8844264488bd2b542c4391022.

The new false-positives were not worth it. It degrades
the suggested fix for some fonts, but at least they are
not false-positives.
2023-11-22 19:34:32 -07:00
Behdad Esfahbod
a72139f354 [interpolatable] Minor, remove a pair of unnecessary parentheses 2023-11-22 15:28:55 -07:00
Behdad Esfahbod
772d1f8c78 [interpolatable] Use absolute sqrt area, not signed
Results are improved. Two regressions only:
- Piazzolla uni046B
- Cairo oslash
2023-11-22 10:02:59 -07:00
Behdad Esfahbod
1cd954d0ff [interpolatable] Tweak magic number
This removes a lot of false positives, and only seems
to introduce a few false positives for Handjet and Caveat.
2023-11-22 07:48:31 -07:00
Behdad Esfahbod
e8d212609f [interpolatable] More work and less play
Reduces false-positives more than it introduces.
2023-11-21 16:39:29 -07:00
Behdad Esfahbod
3465666edf [interpolatable] Comment 2023-11-21 14:54:34 -07:00
Behdad Esfahbod
377bb5a34b [interpolatable] Comment 2023-11-21 14:03:45 -07:00
Behdad Esfahbod
c689bb475a [interpolate] Add some Black Magic
See comments.

In particular, this reports glyph "intersection" in
Archivo fonts that are broken but otherwise will go
unnoticed.
2023-11-21 12:57:41 -07:00
Behdad Esfahbod
772dc549f3
[ttGlyphSet] Add option to not recalculate glyf bounds (#3348)
Avoids unnecessary work in the interpolator.
2023-11-21 12:06:57 -07:00
Behdad Esfahbod
62a28c2183 Revert "[interpolatable] Speed up one function"
This reverts commit c48067b109dd9750a4c960d898d2821974d94c5a.

Was slower in testing.
2023-11-21 10:10:51 -07:00
Behdad Esfahbod
c48067b109 [interpolatable] Speed up one function 2023-11-21 09:49:19 -07:00
Behdad Esfahbod
d20529a65e [interpolatable] Comment 2023-11-21 09:10:58 -07:00
Behdad Esfahbod
9c154e81c2 [interpolatable] Add --name 2023-11-20 20:29:06 -07:00
Behdad Esfahbod
d8db3f47a3 [interpolatable] Err; use right transform for second contour 2023-11-20 19:34:06 -07:00
Behdad Esfahbod
97ebce4977 [interpolatable] Use eigenmagic to reduce false-positives
Mostly in Italic fonts, like RobotoSerif-Italic.
2023-11-20 19:07:24 -07:00