12020 Commits

Author SHA1 Message Date
Behdad Esfahbod
682d72ab6a
Merge pull request #3641 from ftCLI/ttf2otf
Add TTF2OTF snippet
2024-09-29 09:19:53 -06:00
ftCLI
1fbc897f9f Run black 2024-09-29 11:44:16 +02:00
ftCLI
fd2f34285f
Merge branch 'main' into ttf2otf 2024-09-28 11:09:50 +02:00
ftCLI
94cb4f9733 Refactor ttf2otf
Replaced Click with argparse.

Updated docstring with usage examples.

Modified logging to use warnings for conversion failures.
2024-09-28 08:15:31 +02:00
Behdad Esfahbod
0c38f86da9 [MultiVarStore] Remove unused optimize parameter 2024-09-25 09:30:39 -06:00
Simon Cozens
ae96a6d374 Fix cut-and-paste error 2024-09-25 06:34:31 -06:00
n8willis
ff78d5a161
Merge pull request #3637 from n8willis/docs-ufoLib
Docs: ufoLib and misc updates
2024-09-25 11:27:46 +01:00
Khaled Hosny
47c1edbee5 Bump version: 4.54.1 → 4.54.2.dev0 2024-09-24 17:15:33 +03:00
Khaled Hosny
112ace8189 Release 4.54.1 2024-09-24 17:15:32 +03:00
Khaled Hosny
7fe5eb0d01 Update Changelog 2024-09-24 17:14:41 +03:00
ftCLI
d4f89c43b2
Merge branch 'fonttools:main' into ttf2otf 2024-09-24 11:47:04 +02:00
خالد حسني (Khaled Hosny)
510153f9ec
Merge pull request #3647 from fonttools/dependabot/github_actions/pypa/gh-action-pypi-publish-1.10.2
Bump pypa/gh-action-pypi-publish from 1.10.1 to 1.10.2
2024-09-23 22:34:03 +03:00
dependabot[bot]
1223694ae5
Bump pypa/gh-action-pypi-publish from 1.10.1 to 1.10.2
Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.10.1 to 1.10.2.
- [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases)
- [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/v1.10.1...v1.10.2)

---
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-09-23 19:27:12 +00:00
Mark Elliot
4cd0b0d87d Escape \ in subset docs 2024-09-23 12:42:15 -06:00
Behdad Esfahbod
10a61ef7de Update to Unicode 16 2024-09-23 08:46:56 -06:00
Nikolaus Waxweiler
6af41afddf Bump version: 4.54.0 → 4.54.1.dev0 2024-09-23 15:22:33 +01:00
Nikolaus Waxweiler
5429a6c7a4 Release 4.54.0 2024-09-23 15:22:33 +01:00
Nikolaus Waxweiler
cbc350df2e Update Changelog 2024-09-23 15:22:31 +01:00
ftCLI
09df5fcc02
Merge branch 'fonttools:main' into ttf2otf 2024-09-23 09:14:08 +02:00
Nathan Williis
1014b2ff3b Docs: reword cfflib text 2024-09-18 14:49:50 +01:00
Nathan Williis
499101df90 Docs: pens; formatting. 2024-09-17 17:36:33 +01:00
Nathan Williis
909da9680b docs: pens - add preliminary intro section. 2024-09-17 17:24:45 +01:00
Nathan Williis
69cecfaa10 Docs: cffLib, minor updates. 2024-09-17 17:23:44 +01:00
Nathan Williis
3cafab8d50 Docs: reconfigure ufoLib documentation. 2024-09-17 17:11:39 +01:00
Nathan Williis
c6c9ea405e Docs: use by-source order for autodoc consistently. 2024-09-16 12:59:30 +01:00
Nathan Williis
e1b51fb7c4 Docs: set default highlight language to Python. 2024-09-16 12:49:12 +01:00
Nathan Williis
d80b8dbc89 Docs, minor: add regularized title text to all modules. 2024-09-16 12:48:15 +01:00
n8willis
63611d4474
Merge pull request #3627 from n8willis/docs-cleanup
Docs: clean up various code blocks in docstrings, to enable correct syntax highlighting in HTML / RTD output.
2024-09-16 10:40:05 +01:00
Harry Dalton
a43def09c2 Add regression test for #3634
ttx is based on reproduction process in initial issue.
2024-09-15 12:10:29 -07:00
Harry Dalton
07351d12e6 Fix visual artefacts with partial L2 instancing
Closes #3634

To produce inferred deltas that will be correct given OpenType's gvar
semantics, fontTool's IUP optimisation module checks the equality of
some points. However, this happens before the points are rounded,
whereas the point comparison that happens at runtime will occur after
the points are rounded (as is necessary to serialise glyf), which leads
to diverging semantics and so diverging and incorrect implied deltas.

This leads to significant visual artefacts, e.g. where large deltas that
should be inferred based on previous values are instead interpreted as 0
at runtime.

I suspect this has gone undetected as the subsetter normally works with
rounded points; in the rarer case that partial VF instancing is
occurring with a different default position, however, varLib.instancer
will calculate and apply the relevant deltas to the font's original
coordinates to effect the new default position, which leads to unrounded
points in memory. This commit ensures that we round directly before
optimising (but still after calculating `glyf` metrics, for backward
compatibility).
2024-09-15 12:10:29 -07:00
ftCLI
9f7025af8f
Merge branch 'fonttools:main' into ttf2otf 2024-09-12 08:51:52 +02:00
Nathan Williis
d05cdcf21f Docs: black 2024-09-11 15:48:09 +01:00
Nathan Williis
7d93689aca Docs: workaround doctest-vs-Sphinx syntax highlighting. 2024-09-11 15:45:46 +01:00
Roel Nieskens
11343ed64c Add instructions to escape question mark
Arguments without it will not work in zsh and possibly other shells.
2024-09-10 11:17:33 -06:00
Roel Nieskens
d871fd3a08 Remove dotslash from examples 2024-09-10 11:17:33 -06:00
خالد حسني (Khaled Hosny)
4767465183
Merge pull request #3632 from fonttools/dependabot/github_actions/pypa/gh-action-pypi-publish-1.10.1
Bump pypa/gh-action-pypi-publish from 1.9.0 to 1.10.1
2024-09-09 23:39:59 +03:00
dependabot[bot]
af27eb0aef
Bump pypa/gh-action-pypi-publish from 1.9.0 to 1.10.1
Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.9.0 to 1.10.1.
- [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases)
- [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/v1.9.0...v1.10.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-09 19:43:06 +00:00
Nathan Williis
6914070e00 Docs, minor: remove trailing whitespace. 2024-09-04 17:36:48 +01:00
Nathan Williis
21d04842f8 Docs: fix code-example blocks in ttLib. 2024-09-03 17:55:02 +01:00
Nathan Williis
df49533892 Docs: fix code-example blocks in voltLib. 2024-09-03 17:54:45 +01:00
Nathan Williis
1fc9bc2dca Docs: fix code-example blocks in varLib/instancer. 2024-09-03 17:54:29 +01:00
Nathan Williis
23e3ab60f8 Docs: fix code-example blocks in varLib. 2024-09-03 17:53:56 +01:00
Nathan Williis
4b9cb1030e Docs: fix code-example blocks in svgLib. 2024-09-03 17:52:59 +01:00
Nathan Williis
e7c78970ce Docs: fix code-example blocks in ufoLib. 2024-09-03 17:52:20 +01:00
Nathan Williis
f771c37149 Docs: fix code-example blocks in pens. 2024-09-03 17:52:02 +01:00
n8willis
c2119229cf
Merge pull request #3625 from n8willis/docs-cleanup
Docs: fix Sphinx builds.
2024-09-03 11:21:08 +01:00
Nathan Williis
c19b1c5148 Docs: move module docstrings to first line of file, as per PEP 257. 2024-09-02 17:18:41 +01:00
Nathan Williis
cd1c31ff6c Docs: reorder Sphinx extensions. Napoleon must precede autodoc or it will trigger superfluous warnings about indentation. 2024-09-02 17:13:48 +01:00
Cosimo Lupo
b3520722ec
Merge pull request #3617 from fonttools/visit-param-ui-labels
NameRecordVisitor: include whole sequence of character variants' UI labels, not just the first
2024-08-30 18:34:46 +01:00
Cosimo Lupo
afd73dd2b1
NameRecordVisitor: remove unnecessary check for out of bounds nameIDs 2024-08-30 18:20:13 +01:00