12139 Commits

Author SHA1 Message Date
Cosimo Lupo
cdf5a6e69b [ci] try use Github-hosted linux arm64 runners instead of docker+qemu
this should just work now
https://github.blog/changelog/2025-01-16-linux-arm64-hosted-runners-now-available-for-free-in-public-repositories-public-preview/

Fixes https://github.com/fonttools/fonttools/issues/3753
2025-01-24 18:18:17 +00:00
Cosimo Lupo
d822fefa62
Merge pull request #3752 from fonttools/nested-components-bounds
[recalcBounds] fix rounding of bbox for nested transformed components
2025-01-24 18:12:04 +00:00
Cosimo Lupo
bddedc1bc1 restrict the rounding to where strictly needed
we don't need to round all simple glyphs' coordinates (which may be costly), only when these are used as components with an interesting transform
2025-01-24 18:05:18 +00:00
Cosimo Lupo
4ea10eb88f [glyf] fix rounding of bbox for nested transformed components
when getCoordinates is asked to round, e.g. from recalcBounds, only round the simple glyphs' coordinates; don't do any rounding for the coordinates of component glyphs otherwise rounding errors would accummulate if a composite glyph contains transformed/nested components
2025-01-24 15:10:18 +00:00
Cosimo Lupo
e02349c7ce [ttGlyphPen_test] Add bounds test for 'nested' composite glyph
This is a regression introduced with https://github.com/fonttools/fonttools/pull/3750

The test currently fails because we are now applying rounding to the
coordinates extracted from each component of a composite glyph, *before*
these are transformed; with nested components of components with non trivial transforms, the rounding errors compound leading to incorrect bounds.
2025-01-24 15:04:42 +00:00
Cosimo Lupo
48a4b76332 Reapply "Bump version: 4.55.5 → 4.55.6.dev0"
This reverts commit b1ba6870af7812fa5e92e72b703dd4a06f098092.
2025-01-23 12:21:31 +00:00
Cosimo Lupo
b1ba6870af Revert "Bump version: 4.55.5 → 4.55.6.dev0"
This reverts commit 00b7bb958fb85244f09b347ce33a031d3a571b59.
2025-01-23 12:19:47 +00:00
Cosimo Lupo
8abe2ae2b7 [ci] attempt to fix gcc segfaults under aarch64 docker/qemu 2025-01-23 12:16:14 +00:00
Cosimo Lupo
00b7bb958f Bump version: 4.55.5 → 4.55.6.dev0 2025-01-23 11:31:13 +00:00
Cosimo Lupo
dcf0d5abb2 Release 4.55.5 2025-01-23 11:31:13 +00:00
Cosimo Lupo
bbdad2a93e Update NEWS.rst 2025-01-23 11:31:07 +00:00
Cosimo Lupo
cf20a14453
Merge pull request #3750 from fonttools/recalcBounds-round-coords
[glyf] fix bbox of transformed components with un-rounded coordinates
2025-01-23 11:26:50 +00:00
Cosimo Lupo
ec5d41929f [glyf] fix recalcBounds of transformed components with unrounded coordinates
Fixes https://github.com/googlefonts/fontc/issues/1206
2025-01-23 11:19:30 +00:00
Cosimo Lupo
6ea7f5e2a6 [ttGlyphPen_test] add repro for googlefonts/fontc#1206
the test makes sure that the bounding box of composite glyph with non trivial transform pointing to base glyphs with un-rounded floating-point coordinates, still get their bounding box computed on the rounded-off integer coordinates.

see https://github.com/googlefonts/fontc/issues/1206
2025-01-23 11:06:28 +00:00
Cosimo Lupo
098b749536
Merge pull request #3749 from cmyr/fea-duplicate-language-stmt
[feaLib] Allow duplicate script/language statements
2025-01-23 10:21:56 +00:00
Colin Rofls
6bc5d7f887 [feaLib] Allow duplicate script/language statements
And accumulate all of the declared lookups into the appropriate feature.
2025-01-22 12:58:44 -05:00
Cosimo Lupo
46cb2d078a Bump version: 4.55.4 → 4.55.5.dev0 2025-01-21 15:06:25 +00:00
Cosimo Lupo
7222152a41 Release 4.55.4 2025-01-21 15:06:25 +00:00
Cosimo Lupo
294e32651b Update NEWS.rst 2025-01-21 15:05:58 +00:00
Cosimo Lupo
70fb77884c
Merge pull request #3719 from fonttools/statisticsControlPen-fix
[StatisticsControlPen] Fix uninitialized variable
2025-01-21 14:03:04 +00:00
Cosimo Lupo
49cd3c3265
Merge pull request #3732 from andrewsuzuki/fix-name-table-names-attr
Ensure names attr exists on table__n_a_m_e
2025-01-21 14:00:44 +00:00
Cosimo Lupo
e0022ded22
Merge pull request #3743 from cmyr/bez-split-robustness
[bezierTools] Improve robustness of curve splitting
2025-01-21 13:55:05 +00:00
Colin Rofls
fc32bca017 [bezierTools] Improve robustness of splitCubicAtT 2025-01-17 12:20:29 -05:00
خالد حسني (Khaled Hosny)
8d3b990097
Merge pull request #3739 from fonttools/dependabot/github_actions/docker/setup-qemu-action-3.3.0
Bump docker/setup-qemu-action from 3.2.0 to 3.3.0
2025-01-14 16:42:17 +02:00
dependabot[bot]
ec71775e7a
Bump docker/setup-qemu-action from 3.2.0 to 3.3.0
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v3.2.0...v3.3.0)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-13 19:30:26 +00:00
Simon Cozens
cb159dea72
Black (#3736) 2025-01-07 08:23:24 +00:00
梁海 Liang Hai
b497b5de60
Correct docstring of AlternateSubstStatement (#3735) 2025-01-07 07:31:08 +00:00
Harry Dalton
ef07e3b2cc Add further type annotations 2025-01-03 13:16:17 -07:00
Harry Dalton
2865d19ff0 Remove redundant inline imports
Since the addition of `DecomposedTransform`, we have had a top-level
import of `math` to depend on.
2025-01-03 13:16:17 -07:00
Harry Dalton
0b3ac6e9ae Merge tests with the same name, to prevent one being obscured 2025-01-03 13:16:17 -07:00
Harry Dalton
c00bc6fecf Explicitly type arguments that are more liberal than their default value
This avoids pitfalls from type checkers having to work with limited
information, e.g., a type checker may implicitly assume that only
integers are expected where a default value is 1, whereas in reality any
float is accepted.
2025-01-03 13:16:17 -07:00
Andrew Suzuki
68dbfba5c4 Ensure names attr exists on table__n_a_m_e 2024-12-22 10:44:06 -05:00
Rod S
7e374c53da Bump version: 4.55.3 → 4.55.4.dev0 2024-12-10 12:59:30 -08:00
Rod S
8e5c1bf7e9 Release 4.55.3 2024-12-10 12:59:30 -08:00
Rod
460b530f67
Merge pull request #3731 from fonttools/news
Update news to prepare for release
2024-12-10 12:58:22 -08:00
Rod S
e507e7c39d Update news to prepare for release 2024-12-10 12:48:33 -08:00
Colin Rofls
4b9f5ef605 [feaLib] More efficient inline format 4 lookups
With this patch we will now reuse lookups more frequently when a
contextual lookup has inline ligature substitution rules.
2024-12-10 09:51:05 -07:00
Behdad Esfahbod
1be0440c55 [Tests] Don't compare numbers with "is" 2024-12-10 02:28:51 -07:00
خالد حسني (Khaled Hosny)
7ad7cfd058
Merge pull request #3725 from fonttools/dependabot/github_actions/pypa/gh-action-pypi-publish-1.12.3
Bump pypa/gh-action-pypi-publish from 1.12.2 to 1.12.3
2024-12-09 21:57:37 +02:00
dependabot[bot]
2abf8372f2
Bump pypa/gh-action-pypi-publish from 1.12.2 to 1.12.3
Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.12.2 to 1.12.3.
- [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases)
- [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/v1.12.2...v1.12.3)

---
updated-dependencies:
- dependency-name: pypa/gh-action-pypi-publish
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-09 19:45:08 +00:00
n8willis
02cc44530b
Merge pull request #3716 from n8willis/master
[Docs] Fill out ttLib table section. Part of a bottom-up docs rework for ttLib.

Note that 23546cf changes the `import`s for ttLib/tables/_g_v_a_r.py to un-confuse autodoc.
2024-12-06 12:16:54 +00:00
Nathan Williis
23546cfaa9 [Docs] Import TupeVariation class directly in gvar table module. Fixes a Sphinx autodoc confusion. 2024-12-06 11:38:09 +00:00
Nathan Williis
314eee05c7 [Docs] Fix docstring typo in gcid table module. 2024-12-06 11:37:17 +00:00
Behdad Esfahbod
d533e8bd39 [StatisticsControlPen] Fix uninitialized variable
An open contour was hitting this because _startingPoint wasn't
set.

Fixes https://github.com/fonttools/fonttools/issues/3527
2024-12-05 14:19:08 -07:00
Nathan Williis
dcb6f22693 Docs, add crossreferences to bitmap-table-helper-module docs rather than duplicating automodule directives. 2024-12-05 16:07:38 +00:00
Khaled Hosny
eb305519a8 Bump version: 4.55.2 → 4.55.3.dev0 2024-12-05 15:46:27 +02:00
Khaled Hosny
827da6731d Release 4.55.2 2024-12-05 15:46:26 +02:00
Khaled Hosny
d06535aded Update NEWS.rst 2024-12-05 15:44:50 +02:00
خالد حسني (Khaled Hosny)
190441beb8
Merge pull request #3693 from fonttools/dependabot/github_actions/codecov/codecov-action-5
Bump codecov/codecov-action from 4 to 5
2024-12-05 15:34:51 +02:00
خالد حسني (Khaled Hosny)
12049c8503
Merge pull request #3708 from fonttools/pyup-scheduled-update-2024-12-02
Scheduled weekly dependency update for week 48
2024-12-05 15:34:04 +02:00