1308 Commits

Author SHA1 Message Date
Behdad Esfahbod
32c583a343 [interpolatablePdf] Color reversed contour start point differently 2023-11-16 17:12:21 -07:00
Behdad Esfahbod
9a9499a193 [interpolatablePdf] Draw "other" starting point 2023-11-16 17:09:48 -07:00
Behdad Esfahbod
eb3efe3cdf [interpolatable] Report detected start point and reversedness 2023-11-16 16:50:26 -07:00
Behdad Esfahbod
f521748101 [interpolatable] Improve master names for varfonts 2023-11-16 16:19:52 -07:00
Behdad Esfahbod
cb55035c76 [interpolatablePdf] Allow not drawing cupcake or shrug 2023-11-16 15:51:51 -07:00
Behdad Esfahbod
b6c5092996 [interpolatablePdf] Draw exemplar glyph for missing_glyph 2023-11-16 15:47:21 -07:00
Behdad Esfahbod
d6f841914d [interpolatablePdf] Draw shrug for missing glyphs 2023-11-16 15:40:25 -07:00
Behdad Esfahbod
fa3467d897 [interpolatablePdf] Improve arrowhead 2023-11-16 15:04:13 -07:00
Behdad Esfahbod
a36964cca2 [interpolatablePdf] Draw arrowhead 2023-11-16 14:58:48 -07:00
Behdad Esfahbod
fa59ada1b5 [interpolatable] Remove unused imports 2023-11-16 14:35:33 -07:00
Behdad Esfahbod
ad70ba73c8 [interpolatablePdf] Make cupcake customizable 2023-11-16 14:31:37 -07:00
Behdad Esfahbod
1f58691b35 [interpolatablePdf] Draw cupcake if no errors
Artwork courtesy of FontBakery.
2023-11-16 14:24:47 -07:00
Behdad Esfahbod
f4cac3a5c7 [interpolatablePdf] Handle missing_glyph
Ideally we should draw the glyph from some other master...
2023-11-16 14:11:56 -07:00
Behdad Esfahbod
1ea4e32c9c [interpolatable] Reduce non-useful error reports
If contour-order is wrong for a contour, then no point
reporting its starting-point difference.
2023-11-16 12:41:32 -07:00
Behdad Esfahbod
b0de73dd70 [interpolatable] Remove a wrong break
It was making us only report wrong_contour_order for the
first master so.
2023-11-16 11:24:46 -07:00
Behdad Esfahbod
f27a1ebe59 [interpolatablePdf] Improve contour_order reporting
Only color the wrong contours.
2023-11-16 11:12:40 -07:00
Behdad Esfahbod
fc0efe566e [interpolatable] Emphasize area more
Also use floats. I can't measure any difference.
2023-11-16 11:09:11 -07:00
Behdad Esfahbod
60aaa35000 [interpolatable] Add --tolerance 2023-11-15 21:11:38 -07:00
Behdad Esfahbod
9612d67f80 [interpolatablePdf] Adjust start-handle color 2023-11-15 20:35:02 -07:00
Behdad Esfahbod
49893028a0 [interpolatable] Retain area sign
Reduces false-positives. Eg. with NotoSansBengali.glyphs.
2023-11-15 20:26:02 -07:00
Behdad Esfahbod
0325c504f4 [interpolatablePdf] Only draw wrong contour start handle 2023-11-15 20:11:34 -07:00
Behdad Esfahbod
f9389a8ea9 [interpolatablePdf] Black 2023-11-15 20:02:33 -07:00
Behdad Esfahbod
2cdb3367aa [interpolatablePdf] Draw contour_order 2023-11-15 19:52:51 -07:00
Behdad Esfahbod
e900d2a973 [interpolatablePdf] Draw wrong_start_point 2023-11-15 19:43:59 -07:00
Behdad Esfahbod
cc26545c0b [interpolatablePdf] Draw node count / incompatibility issues 2023-11-15 19:34:19 -07:00
Behdad Esfahbod
2bfd5d8dd7 [interpolatablePdf] Use a recording
Instead of drawing the pen multiple times.
2023-11-15 17:19:59 -07:00
Behdad Esfahbod
c0d86edf0c [interpolatable] Start of generating PDF output 2023-11-15 17:16:18 -07:00
Cosimo Lupo
69636098bd
[instancer] Ensure hhea vertical metrics stay in sync with OS/2 ones after instancing
Fixes https://github.com/fonttools/fonttools/issues/3297
2023-11-15 14:05:44 +00:00
Behdad Esfahbod
4a4f1b89d8 [interpolatable] Simplify previous commit 2023-11-14 09:40:37 -07:00
Behdad Esfahbod
1e06fd2b1d [varLib.interpolatable] Print user axis values instead of normalized 2023-11-14 09:33:28 -07:00
Behdad Esfahbod
64279c3d85 [varLib.models] Export piecewiseLinearMap() 2023-11-14 09:21:11 -07:00
Behdad Esfahbod
478e009a4e [interpolatable] Change --verbose to INFO 2023-11-14 08:47:27 -07:00
Behdad Esfahbod
fd4c0cef26 [interpolatable] Add --verbose
Mostly to return how many masters it's working on,
as per request by Marianna.
2023-11-14 08:46:32 -07:00
Cosimo Lupo
53e71f9eb7
Merge pull request #3309 from fonttools/pyup-scheduled-update-2023-10-23
Scheduled weekly dependency update for week 43
2023-11-03 10:33:00 +00:00
Cosimo Lupo
335a1e56ec re-run black v23.10 on all .py files 2023-11-03 10:25:15 +00:00
Cosimo Lupo
74da89beeb
Merge pull request #3317 from fonttools/instantiate-avgcharwidth
Recalc avgcharwidth after instancing
2023-11-03 10:12:07 +00:00
Behdad Esfahbod
ae69e9e8be
[instancer] Allow relaxed limits syntax (#3323)
* [instancer] Allow relaxed limits syntax

Fixes https://github.com/fonttools/fonttools/issues/3322

Co-authored-by: Cosimo Lupo <clupo@google.com>
2023-11-02 10:22:23 -06:00
Behdad Esfahbod
2d9b80acd1 [instancer] Remove unused import 2023-11-01 15:11:56 -06:00
Behdad Esfahbod
c3d8768346 [interpolatable] Oops, fix tests 2023-10-31 09:00:00 -06:00
Behdad Esfahbod
99da7bf722 [interpolatable] Write out problems as they are discovered
Instead of writing them all at the end...
2023-10-31 08:54:33 -06:00
Behdad Esfahbod
cd31f0ce7b [interpolatable] Add test_gen that returns a generator 2023-10-31 08:45:08 -06:00
Behdad Esfahbod
6f867e9c6a [interpolatable] Use defaultdict instead of OrderedDict
Such that missing entries return [] instead of KeyError.
2023-10-31 08:41:28 -06:00
Simon Cozens
49570c3599
[instancer] Check if an axis has values before requiring it to be found (#3319)
* Check if an axis has values before requiring it to be found

* Add test
2023-10-31 08:21:34 +00:00
Simon Cozens
3573cd906b Recalc avgcharwidth after instancing 2023-10-30 10:11:31 +00:00
Behdad Esfahbod
5cd2b1cc50 [varStore] Document sorting 2023-10-24 12:47:58 -06:00
Behdad Esfahbod
0a6b95af1e [varLib.varStore] Revert micro-optimizations
Based on review.
2023-10-24 11:50:47 -06:00
Behdad Esfahbod
bf402b9fde [varStore] Micro-optimize addItem() 2023-10-23 15:28:14 -06:00
Behdad Esfahbod
9e36b9465d [varStore] Micro-optimize storeDeltas()
Also speed up the test slightly by skipping rounding.
2023-10-23 15:18:11 -06:00
Behdad Esfahbod
c7ce5b0f3c [varStore] Handle >65535 items per encoding
By creating a new major for each 65535.
2023-10-23 14:43:10 -06:00
Behdad Esfahbod
6e1f55b0c8 [varLib.interpolatable] black
Oops.
2023-10-20 16:43:24 -06:00