11265 Commits

Author SHA1 Message Date
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
Behdad Esfahbod
64279c3d85 [varLib.models] Export piecewiseLinearMap() 2023-11-14 09:21:11 -07:00
Behdad Esfahbod
4d640046b2 [svgPathPen] Accept float axis locations 2023-11-14 09:10:09 -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
3d6a55d536
Bump version: 4.44.1 → 4.44.2.dev0 2023-11-14 12:32:37 +00:00
Cosimo Lupo
90649fced9
Release 4.44.1 2023-11-14 12:32:35 +00:00
Cosimo Lupo
92f85f2189
Update NEWS.rst 2023-11-14 12:32:30 +00:00
Simon Cozens
4c60c5f3ba
Clone variable mark anchor before building (#3330)
* Copy mark anchor before OTifying

* Add test for variable mark anchor
2023-11-13 16:43:55 +00:00
خالد حسني (Khaled Hosny)
3b90398696
Merge pull request #3328 from fonttools/recalc-codepages
Support calculating OS/2.ulCodePageRange* bits
2023-11-11 11:39:02 +02:00
Khaled Hosny
28735a6d0a [subset] Add --prune-codepage-ranges 2023-11-11 01:54:00 +02:00
Khaled Hosny
be8ec35934 [OS/2] Add recalcCodePageRanges
Ported from the ufo2ft code (which is port from FontForge code), with
some additional functions for parity with recalcUnicodeRanges.
2023-11-11 01:54:00 +02:00