Behdad Esfahbod
9ac1f39045
[Tests] Fix most test expectations for AlternateSubst .Format removal
2021-03-23 11:43:22 -07:00
Behdad Esfahbod
b62170e86d
[Tests] Fix most tests expectations for LigatureSubst .Format change
2021-03-23 11:43:15 -07:00
Behdad Esfahbod
61b06a7fe0
[Tests] Fix most tests expectations for SingleSubst .Format change
2021-03-23 11:43:03 -07:00
Behdad Esfahbod
de81aae164
[Tests] Fix more tests expectations for Coverage/ClassDef .Format change
2021-03-23 11:42:54 -07:00
Behdad Esfahbod
975f85ed72
[Tests] Fix most tests expectations for Coverage/ClassDef .Format change
2021-03-23 11:42:38 -07:00
Nikolaus Waxweiler
2089d05126
Merge pull request #2229 from fonttools/varLib-otlLib-noreload
...
[varLib/otlLib] Allow merging into VariationFont without first saving GPOS PairPos2
2021-03-22 16:42:45 +00:00
Nikolaus Waxweiler
30ade474dd
Update test data
2021-03-22 14:45:24 +00:00
Simon Cozens
23cb8b989b
More tests
2021-03-18 21:24:13 +00:00
Simon Cozens
8a6e3087ce
Use pytest exception handling
2021-03-17 11:55:51 +00:00
Simon Cozens
0a1aa19c39
Test for better error message
2021-03-15 13:12:11 +00:00
Cosimo Lupo
d80779d71e
py23_test: remove py27 test always skipped now
2021-03-11 18:23:26 +00:00
Behdad Esfahbod
062b7c434e
Merge pull request #2214 from fonttools/varLib-round
...
[varLib] Move rounding to VariationModel, to avoid error accumulation from multiple deltas
2021-03-04 16:40:40 -07:00
Behdad Esfahbod
ed6164a44f
[varLib.cff] Round deltas using bankers round as well
...
See https://github.com/fonttools/fonttools/pull/2214#issuecomment-790742479
Good news: this reverted the one CFF test that needed its expectation to
change when I started this patchset. Bad news: it introduced a couple other
diffs to the same glyph of the same test, which is consistent with changing
the rounding from otRound to round3.
2021-03-04 13:10:01 -07:00
Just van Rossum
6a8821d91c
Revert "Use Vector in some places where it improves the clarity of the code" ( #2215 )
...
* Revert most of "Use Vector in some places where it improves the clarity of the code (#2206 )"
This reverts most of commit 0d3ce2cafc6f604fc46d4d3bfbab34a5bc59e27b.
2021-03-04 20:15:24 +01:00
Behdad Esfahbod
68004b8fec
[varLib] Shift most (all?) delta-rounding to VarModel
...
Reduces error.
The main varfont-builder now asks the model to do rounding, and asks
VariationStore to do no rounding, so we don't spend extra times rounding
multiple times (specially with the heavy otRound).
I *think* I got it all and right...
Fixes https://github.com/fonttools/fonttools/issues/2213
2021-03-04 09:20:43 -07:00
Just van Rossum
0d3ce2cafc
Use Vector in some places where it improves the clarity of the code ( #2206 )
...
* Use Vector in some places where it improves the clarity of the code
* add __all__ to vector.py
* turned some list comprehensions into generator expressions: there's no need for an intermediate list in these cases
* Add empty __slots__ to Vector, so we don't waste space on a __dict__.
* add some tests for segmentPointAtT
2021-03-04 15:32:45 +01:00
justvanrossum
44b7560fe5
move Vector to its own submodule, and rewrite as a tuple subclass
2021-02-27 19:54:53 +01:00
justvanrossum
2429a187fc
Revert ABC changes to Pens, fixes #2198
2021-02-26 20:18:37 +01:00
Marc Foley
52fec53d20
Drop nameID 25 if instantiating a static font
2021-02-26 10:32:38 +00:00
Marc Foley
a7913ef50e
Add test for Regular fallback
2021-02-26 10:32:38 +00:00
Cosimo Lupo
2be13d50ac
make instancer into a package dir and move all names-related funcs to submodule
...
move instancer tests to Tests/varLib/instancer directory
create instancer/__main__.py to make package executable
2021-02-26 10:31:30 +00:00
Marc Foley
0280eb36cc
Parametrize updateNameTable tests
2021-02-26 10:19:43 +00:00
Marc Foley
336e7827e7
Implement Cosimo feedback
2021-02-26 10:19:43 +00:00
Marc Foley
29e4ff987c
instancer: implement Cosimo feedback
2021-02-26 10:19:43 +00:00
Marc Foley
0bcbbfdbb5
instancer: reuse existing instantiateSTAT func
2021-02-26 10:19:43 +00:00
Marc Foley
9a72311d19
instancer: refactor updateNameTable
2021-02-26 10:19:43 +00:00
Marc Foley
b328475072
wip instancer: update uniqueID
2021-02-26 10:19:43 +00:00
Marc Foley
ce1d8a9955
instancer: Add axisDefaults to axisLimits
2021-02-26 10:19:43 +00:00
Marc Foley
69c8667982
instancer: sort axisValues so format 4 are dominant for constructing names
2021-02-26 10:19:43 +00:00
Marc Foley
b4b1ce3579
instancer: include attribute axisValues
2021-02-26 10:19:42 +00:00
Marc Foley
f89c01d2d7
instancer: only updateNames if axisValue with specified coord exists
2021-02-26 10:19:42 +00:00
Marc Foley
78f6c2ae75
instancer: add test for partial instance name
2021-02-26 10:19:42 +00:00
Marc Foley
b502471a08
wip instancer: support format 4 axisvalues
2021-02-26 10:19:42 +00:00
Marc Foley
b95607513c
WIP instancer: update static font nametable
2021-02-26 10:19:42 +00:00
Kamile Demir
29ff42d15f
Reusing otlLib buildStatTable() in feaLib
2021-02-25 17:16:02 +00:00
Zachary Scheuren
0434b1a917
Add feaLib support for STAT table
2021-02-25 17:16:01 +00:00
Nikolaus Waxweiler
f6a62e0db1
Merge pull request #2164 from fonttools/pen-maintenance
...
Pen maintenance
2021-02-22 10:26:39 +00:00
Nikolaus Waxweiler
839c57a50d
Remove some Python 2 vestiges from pen tests
2021-02-21 10:30:17 +00:00
Nikolaus Waxweiler
ab1883da1d
Turn AbstractPen and AbstractPointPen into ABCs plus typing
2021-02-21 10:20:37 +00:00
Denis Moyogo Jacquerye
537fabcee9
[feaLib] update tests for indented anchors
2021-02-18 19:19:18 +00:00
Simon Cozens
bac9a1cba3
Merge pull request #2185 from simoncozens/fontbuilder
...
fontBuilder improvements
2021-02-15 15:23:32 +00:00
Cosimo Lupo
09af39ab53
subset: donwgrade COLRv1 to v0 if all v1 glyphs are dropped
2021-02-15 11:58:56 +00:00
Cosimo Lupo
55c9a0a1ef
update subset_test.py using new COLRv1 dict format
2021-02-15 11:15:42 +00:00
Cosimo Lupo
056aba8e4a
prune unused CPAL palette entries after subsetting COLR glyphs
...
Fixes https://github.com/fonttools/fonttools/issues/2174
2021-02-15 11:15:42 +00:00
Cosimo Lupo
dda10e0f00
WIP: add test_subset_COLRv1
2021-02-15 11:12:16 +00:00
rsheeter
7abd234929
Update tests for new formats
2021-02-15 10:42:59 +00:00
rsheeter
5316ae4b8c
Add test to expose missed otRound + fix
2021-02-12 20:23:06 -08:00
rsheeter
0353c809cd
Update COLR build fns per review feedback
2021-02-12 10:02:08 -08:00
Simon Cozens
3871537abd
Update test expectations; multilingual names got shared instead of duplicated
2021-02-12 12:11:51 +00:00
Cosimo Lupo
e542b60dde
colorLib: add generic TableUnbuilder, reverse of TableBuilder
2021-02-10 18:44:28 +00:00