11091 Commits

Author SHA1 Message Date
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
خالد حسني (Khaled Hosny)
6fa1a76e06
Merge pull request #3255 from fonttools/dependabot/github_actions/pypa/gh-action-pypi-publish-1.8.10
Bump pypa/gh-action-pypi-publish from 1.8.8 to 1.8.10
2023-11-05 14:48:20 +02:00
خالد حسني (Khaled Hosny)
7b2d8b9463
Merge pull request #3271 from fonttools/dependabot/github_actions/actions/checkout-4
Bump actions/checkout from 3 to 4
2023-11-05 14:48:01 +02:00
خالد حسني (Khaled Hosny)
64c4ff08eb
Merge pull request #3278 from fonttools/dependabot/github_actions/docker/setup-qemu-action-3.0.0
Bump docker/setup-qemu-action from 2.2.0 to 3.0.0
2023-11-05 14:47:30 +02:00
Cosimo Lupo
86521547f8
Bump version: 4.44.0 → 4.44.1.dev0 2023-11-03 11:08:40 +00:00
Cosimo Lupo
4c647091a7
Release 4.44.0 2023-11-03 11:08:39 +00:00
Cosimo Lupo
5c6fe718bd
Update NEWS.rst [skip ci] 2023-11-03 11:05:49 +00:00
Cosimo Lupo
db7d9ea6bc
Merge pull request #3325 from fonttools/unicode-15-1
[setup.py] require unicodedata2>=15.1.0 for Unicode 15.1
2023-11-03 10:45:40 +00:00
Cosimo Lupo
e1b0dab9d2 [ci] test on pypy3.9
pypy3.8 segfaulted for some reasons... Don't have time to investigate. Anyway, only pypy3.9 and 3.10 are listed on PyPy website's official download page currently so I suppose we should just test on 3.9 as the minimum pypy3
2023-11-03 10:40:58 +00:00
Cosimo Lupo
6d43bd7e11 [setup.py] require unicodedata2>=15.1.0 for Unicode 15.1 2023-11-03 10:33:09 +00: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
d210cc5ac1 requirements.txt: tell pyup bot to keep scipy pinned for py3.8 2023-11-03 10:15:23 +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
Simon Cozens
71e991b87f Fixup expectations 2023-11-02 17:28:13 +00:00
Cosimo Lupo
9a46f9d3ab
Merge pull request #3324 from fonttools/otllib-sort-classes
[otlLib] make ClassDefBuilder class order match varLib.merger's
2023-11-02 16:47:06 +00:00
Cosimo Lupo
2c07619344 [otlLib] make ClassDefBuilder class order match varLib.mergers
see https://github.com/fonttools/fonttools/blob/c3d876/Lib/fontTools/misc/classifyTools.py#L77

i.e. we want (large classes first, then lexicographic order on the glyphs); previously otlLib was sorting by the _reverse_ of (small classes first, then glyphs lexicographic order) -- effectively comparing the reverse of the glyph sets of classes of the same size.

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

note the ttx dump of previously built fonts may change but there won't be any functional changes.
2023-11-02 16:36:48 +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