11526 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
efd74adadd [statisticsPen] Adjust docstring 2023-11-16 14:04:29 -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
290c3333f9 [statisticsPen] Variance and standard-deviation are non-negative
I don't know why I get negative values there, but add an
abs() for now.

This fixes varLib.interpolatable false-negatives with
NotoSansEthiopean's `koa.eth` glyph.
2023-11-16 11:00:54 -07:00
Behdad Esfahbod
374f4d00eb
Merge pull request #3339 from fonttools/interpolatablePdf
[interpolatable] Start of generating PDF output
2023-11-16 10:20:33 -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
Behdad Esfahbod
c92f378691 [tests] Add test for symfont 2023-11-15 10:31:25 -07:00
Behdad Esfahbod
d8979befe1 [requirements] Add sympy
Used by misc.symfont.
2023-11-15 10:31:25 -07:00
Cosimo Lupo
bbef6c510f
Bump version: 4.44.3 → 4.44.4.dev0 2023-11-15 16:21:32 +00:00
Cosimo Lupo
e6d820e1be
Release 4.44.3 2023-11-15 16:21:31 +00:00
Cosimo Lupo
3fcc2b7cbb
Update NEWS.rst 2023-11-15 16:21:17 +00:00
Cosimo Lupo
64b2e5c968
Merge pull request #3337 from fonttools/instancer-sync-vmetrics
[instancer] Ensure hhea vertical metrics stay in sync with OS/2 after MVAR instancing
2023-11-15 15:02:10 +00: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
Cosimo Lupo
a92b2b0725
[instancer_test] check that vertical metrics stay in sync after MVAR instancing 2023-11-15 14:05:43 +00:00
Cosimo Lupo
21124cf9e4
Merge pull request #3336 from fonttools/fix-os2-cp-ranges-error
Fix os2 cp ranges error
2023-11-15 13:58:28 +00:00
Cosimo Lupo
f518e5a704
[OS/2] don't error getting/setting codepages if version=0
return empty set, or set the bits and bump the version to match
2023-11-15 12:21:02 +00:00
Cosimo Lupo
49bd8adbc4
[subset] only prune codepage ranges for OS/2.version >= 1
Fixes #3334
2023-11-15 12:21:02 +00:00
Behdad Esfahbod
a6c30e8c35 [subset.cff] Change a type
Doesn't fix, but related to
https://github.com/fonttools/fonttools/discussions/3332

The list type didn't make any sense. Use None instead.
2023-11-14 11:08:14 -07:00
Cosimo Lupo
441228e85a
Bump version: 4.44.2 → 4.44.3.dev0 2023-11-14 17:11:47 +00:00
Cosimo Lupo
4e1c9a0a4b
Release 4.44.2 2023-11-14 17:11:46 +00:00
Cosimo Lupo
d04ee413e6
Update NEWS.rst 2023-11-14 17:11:38 +00:00
Cosimo Lupo
797c0018a0
Merge pull request #3333 from fonttools/fix-empty-composite-bbox
[glyf] skip empty components when computing bounds of composite glyphs
2023-11-14 17:02:51 +00:00
Cosimo Lupo
4610bf39e3
[glyf] skip empty components when computing bounds of composite glyphs 2023-11-14 16:47:20 +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
Cosimo Lupo
aaed718e41
[glyf_test] Test that composite referencing empty glyph also gets zero bounds
Add reproducer for possible regression in Glyph.recalcBounds introduced with https://github.com/fonttools/fonttools/pull/3301
2023-11-14 16:30:26 +00:00