Cosimo Lupo
b8333d9ade
instancer_test: revert expected result to before, to match eab9aa5
2022-07-06 16:50:22 +01:00
Cosimo Lupo
eab9aa5a22
instancer: use_NO_VARIATION_INDEX=False when optimizing {H,V}VAR VarStore
...
Same as we do in subsetter, see e01f643a8e
2022-07-06 16:36:05 +01:00
Cosimo Lupo
c011652101
Bump version: 4.34.0 → 4.34.1.dev0
2022-07-06 11:58:47 +01:00
Cosimo Lupo
78dee2bad5
Release 4.34.0
2022-07-06 11:58:46 +01:00
Cosimo Lupo
b83da5822c
Update NEWS.rst
2022-07-06 11:53:54 +01:00
Cosimo Lupo
b3a5b1b8ad
Merge pull request #2683 from fonttools/dependabot/github_actions/actions/setup-python-4
...
build(deps): bump actions/setup-python from 3 to 4
2022-07-06 11:17:26 +01:00
Cosimo Lupo
d4079f856e
Merge pull request #2682 from fonttools/dependabot/github_actions/codecov/codecov-action-3
...
build(deps): bump codecov/codecov-action from 2 to 3
2022-07-06 11:17:17 +01:00
Cosimo Lupo
14f88fb781
Fix cu2quPen_test.py for python 3.11
...
Credits to pnamade from https://github.com/fonttools/fonttools/pull/2655
2022-07-06 11:16:02 +01:00
Cosimo Lupo
5ca57917c6
fix UFOFormatVersion tuple's __str__ in python 3.11
...
python 3.11 doesn't like when a mixin overrides a dunder method like __str__, for some reasons it keep using Enum.__str__, see
https://github.com/fonttools/fonttools/pull/2655
2022-07-06 11:13:55 +01:00
Nikolaus Waxweiler
ce38db6562
Merge pull request #2673 from daltonmaag/instancer-set-bits
...
Set RIBBI bits when cutting instances
2022-07-06 11:01:08 +01:00
dependabot[bot]
ef82649c2d
build(deps): bump actions/setup-python from 3 to 4
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-06 09:58:50 +00:00
dependabot[bot]
5e7ce0a725
build(deps): bump codecov/codecov-action from 2 to 3
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 2 to 3.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-06 09:58:48 +00:00
Cosimo Lupo
47206d445d
Merge pull request #2669 from turrisxyz/Dependabot-GitHub-Actions
...
chore: Included githubactions in the dependabot config
2022-07-06 10:58:27 +01:00
Cosimo Lupo
2a07518b70
Merge pull request #2660 from fonttools/variable-colr
...
[varLib] add support for building variable COLR from set of master COLRv1 tables
2022-07-06 10:55:50 +01:00
Cosimo Lupo
46e780ffa2
Merge pull request #2668 from googlefonts/hb_repack
...
Update how table packing falls back to fontTools from harfbuzz.
2022-07-06 10:49:39 +01:00
Cosimo Lupo
b63df64f8d
Merge pull request #2675 from dscorbett/fealib-ignore-names-2-6
...
[feaLib] Let the parser set nameIDs 1 through 6
2022-07-06 10:42:27 +01:00
Nikolaus Waxweiler
2cd4f7e688
Use NameID enum
2022-07-06 10:40:27 +01:00
Nikolaus Waxweiler
87bf2a866d
Update docstring
2022-07-06 10:37:22 +01:00
Cosimo Lupo
f1d715dbb1
Add integration test for variable COLR in varLib_test.py
2022-07-06 10:24:16 +01:00
Cosimo Lupo
ef3775a084
merger_test: add test for expandPaintColrLayers method
2022-07-06 09:59:16 +01:00
Cosimo Lupo
fd397bac32
merger_test: test with masters' layer reuse off and on to confirm output is the same
2022-07-06 09:14:17 +01:00
Cosimo Lupo
cdc7cc3cc4
COLR merger be cleverer and only deepcopy effectively reused layers
...
instead of blindly copying them all like in previous commit.
2022-07-05 20:37:54 +01:00
Cosimo Lupo
c27483fa54
[instancer] add --no-recalc-bounds CLI option
2022-07-05 19:02:21 +01:00
Cosimo Lupo
8a9f16d129
COLRVariationMerger: copy destination layers to ensure they are unique and can be modified in place
2022-07-05 17:53:39 +01:00
Nikolaus Waxweiler
e84bee9cd9
Set bits only after updating names
2022-07-05 16:10:15 +01:00
Nikolaus Waxweiler
2c773441cf
Remove logging
2022-07-05 16:09:37 +01:00
Nikolaus Waxweiler
16d899a2be
Apply RIBBI bits to all kinds of fonts
2022-07-05 15:45:44 +01:00
Cosimo Lupo
e5029801d2
support merging COLR masters with 'sparse' glyphsets or different layer count
...
There is no longer a requirement that all the masters have exactly the same base color glyphs as the default masters. Similarly, it's no longer required that all masters' LayerLists have the same total count of layers. It is sufficient that, for a base color glyph in the default master, a non-default master may (or may not) contain one with the same name and same effective number of layers (which in turn can be laid out differently in the respective LayerLists).
This provides greater flexibility when working with variable font project with sparse glyph sets.
2022-07-05 00:11:12 +01:00
Cosimo Lupo
a3f402e036
move build_n_ary_tree to misc/treeTools.py module
...
so I can import from varLib.merger as well
2022-07-04 23:08:14 +01:00
Cosimo Lupo
5d52124e49
varLib.errors: allow to give extra context as to where an error occurs in the optional 'cause'
2022-07-04 18:52:20 +01:00
Cosimo Lupo
4b9f35dc2b
varLib.merger: subset self.ttfs to non-None (sparse) values in VariationMerger.mergeThings
2022-07-04 18:52:20 +01:00
Cosimo Lupo
3b0769b519
colorLib: let clipBoxes contain more glyphs than colorGlyphs, helps with sparse variable builds
2022-07-04 18:44:54 +01:00
Cosimo Lupo
eb00e499c0
colorLib: factor out LayerReuseCache class
2022-07-04 12:40:47 +01:00
David Corbett
8ec37c4bb3
[feaLib] Let the parser set nameIDs 1 through 6
2022-07-02 15:23:03 -04:00
Nikolaus Waxweiler
a3e14643a1
Set RIBBI bits when cutting instances
2022-06-30 18:56:03 +01:00
Cosimo Lupo
c2887caf95
varLib/merger_test: test merging ClipBoxes
2022-06-28 18:23:06 +01:00
Cosimo Lupo
d85aa2d119
COLRVariationMerger: further optimize DeltaSetIndexMap
...
previously we only reused the VarIndexBase of a previously seen variable table when the current's varIdxes were _fully_ equal to one of the previous; now we also try to find a match anywhere in the accummulated list of self.varIdxes, including a partial match at the tail of the list.
2022-06-28 14:11:28 +01:00
Garret Rieger
10140f9df3
Remove TODO.
2022-06-27 18:32:04 +00:00
Garret Rieger
8196166e53
Add some additional comments about packing state machine.
2022-06-27 18:28:02 +00:00
Garret Rieger
d92fd2665c
Use enum's for repacker state.
2022-06-27 18:18:20 +00:00
Garret Rieger
4acad94b93
Update harfbuzz repack test failure message expectation.
2022-06-27 18:13:52 +00:00
Cosimo Lupo
c397764720
COLRVariationMerger: implement reuse of VarIndexBase between tables with same varIdxes
...
When multiple variable tables refer to the same delta-sets they can now share the same VarIndexBase so the resulting DeltaSetIndexMap is a bit smaller.
For simplicity, we only reuse VarIndexBase when variable tables fully share (ie. same, and same number of) varIdxes; potentially we could reuse subsets of varIdxes (e.g. a VarColoStop.Alpha has a +0.5 delta, and later on elsewhere a PaintVarSolid.Alpha has a similar +0.5 delta; the latter could have a VarIndexBase that reuses an existing DeltaSetIndexMap entry for the former), but for now this I think is good enough.
2022-06-27 17:17:32 +01:00
Cosimo Lupo
99a754a48e
varLib/merger.py: (minor) rename self.varTables => self.varTableIds
2022-06-27 15:54:51 +01:00
Cosimo Lupo
2b6e813b98
varLib/merger_test: minor reorder sub-tests to follow incremental PaintFormat
2022-06-27 15:38:55 +01:00
Cosimo Lupo
4ca582a273
otTraverse: add pretty __str__ for SubTablePath tuple
...
so one can debug print(path) and get things like 'Paint.Paint.ColorLine.ColorStop[1]'
2022-06-24 18:33:52 +01:00
Cosimo Lupo
f98c860ff2
Start adding Tests/varLib/merger_test.py for COLRVariationMerger
2022-06-24 18:16:28 +01:00
Cosimo Lupo
f02593cf1a
COLRVariationMerger: fix logic in convertSubTablesToVarType
...
Before we were too greedy in the way we converted subtables to VarType. E.g. If a PaintTransform wrapping a PaintRadialGradient contained variations in the Affine2x3, we would incorrectly convert also the gradient's ColorLine (and ColorStops) to VarColorLine, VarColorStop, etc. (even if the gradient was not variable!). Instead we want skip traversing a given subtable including its children when the predicate doesn't match.
2022-06-24 18:14:58 +01:00
Cosimo Lupo
41943bb0e7
otTraverse: add options to skip_root and predicate to filter out entire sub-trees
2022-06-24 18:04:04 +01:00
Cosimo Lupo
a53a235302
varLib.merger: set Paint.Format to int(PaintFormat)
...
for consistency with the way tables are decompiled from binary data
2022-06-24 11:36:58 +01:00
Cosimo Lupo
7ab7940761
varLib: simplify a bit following varStore.py recent changes
...
#2662
2022-06-24 10:20:48 +01:00