Behdad Esfahbod
fbf09fb24d
[ttGlyphSet_test] Test that RecordingPointPen records VarComposite
2023-02-03 11:03:04 -07:00
Behdad Esfahbod
cf9dece8f2
[transform] Add Transform.toDecomposed()
2023-02-03 09:55:00 -07:00
Behdad Esfahbod
a1907cfd4d
[transform] Add DecomposedTransform tests
2023-02-03 09:42:04 -07:00
Behdad Esfahbod
2e20e47473
[transform] Rename VarTransform to DecomposedTransform
2023-02-03 09:05:55 -07:00
Behdad Esfahbod
69966aa5d7
[BasePen] Add addVarComponent()
2023-02-02 15:25:09 -07:00
Behdad Esfahbod
e07fafc324
[scaleUpem_test.py] Scale other varComposite font as well
...
Just because it's there.
2023-02-01 19:06:10 -07:00
Behdad Esfahbod
2c2a0964d7
[ttGlyphSet_test] Add another varComposite test
...
This one has different characteristics, hitting more code.
2023-02-01 18:56:31 -07:00
Behdad Esfahbod
1d072aa30e
[scaleUpem_test] Also test readint varComposite XML
...
Easiest place to test it. I know...
2023-02-01 18:39:20 -07:00
Behdad Esfahbod
f3dd3fb48f
[ttGlyphSet_test] Use variations in varComposite test
...
To hit more code with test.
2023-02-01 18:31:54 -07:00
Behdad Esfahbod
b821141eb7
[interpolatable_test] Test VarComposite
2023-01-31 13:44:20 -07:00
Behdad Esfahbod
0f1eb4673c
[instancer_test] Add varComposite test
2023-01-31 13:25:06 -07:00
Behdad Esfahbod
6755acceee
[woff2] Add fvar to glyf dependencies
...
Since the VarComposites added fvar to glyf dependencies in ttLib.
Add test for VarComposite to woff2 tests.
2023-01-31 12:46:17 -07:00
Behdad Esfahbod
b657b309e9
[Tests/subset/VarComposite] Add test
2023-01-30 11:26:21 -07:00
Behdad Esfahbod
63d355e37d
[Tests/ttGlyphSet/VarComposite] Add test
...
And a bugfix.
2023-01-30 11:26:21 -07:00
Behdad Esfahbod
f2cf4eea73
[Tests/scaleUpem/VarComposite] Add test
2023-01-30 11:26:21 -07:00
Khaled Hosny
253b4f9afc
[feaLib] Further merge inline single substitutions
...
Fixes https://github.com/fonttools/fonttools/issues/2150 (see the
discussion there).
2023-01-28 09:51:49 -07:00
Behdad Esfahbod
7899dd8dbc
[instancer] Limit axis ranges to that of fvar
...
Fixes https://github.com/fonttools/fonttools/issues/2959
2023-01-26 11:47:25 -07:00
Cosimo Lupo
fadb335591
reproducer for bug subsetting COLR.ClipList with shared clips #2965
...
modify test so that a couple color glyphs share the same clipbox to trigger issue copying lazy objects
https://github.com/fonttools/fonttools/pull/2968
2023-01-26 18:02:14 +00:00
Khaled Hosny
eb93b7688e
[feaLib] Fix handled of "ignore" with unmarked glyphs
...
Fixes https://github.com/fonttools/fonttools/issues/2949
- If there are no marked glyphs in an "ignore" statement, issue a
warning. The spec disallows this but makeotf allows it. It is most
likely a typo, so a warning is warranted.
- Mark the first glyph not all the glyphs, this matches makeotf.
- In asFea() always mark the input glyph.
- Udpate the tests.
2023-01-10 16:26:12 +02:00
Colin Rofls
1987dbaa05
[feaLib] Remove rogue whitespace in GPOS_1_zero.ttx
...
In what I presume was error, this test case included a space on the line
immediately following the <ttFont> element; this space is not present in
any other ttx files.
For reasons that are unclear to me, and likely not worth investigating,
the presence (or absence) of this space does not influence the passing
or failure of this test case; however it *does* cause a failure in my
feature compiler, which is reusing this test suite, and so I would like
to fix it here, and simplify my own life somewhat.
2022-12-14 19:01:11 -05:00
Cosimo Lupo
c192707bab
cu2qu_test: black fix
...
this was merged just before the black CI check was put in
2022-12-14 19:00:16 +00:00
Cosimo Lupo
c30a6355ff
Merge pull request #2925 from fonttools/blacken-code
...
Blacken code
2022-12-14 18:53:35 +00:00
Behdad Esfahbod
78a939848f
[Cu2QuMultiPen] Add tests and fix a but
...
Fixes https://github.com/fonttools/fonttools/issues/2926
2022-12-13 11:28:33 -07:00
Colin Rofls
4716f85731
[feaLib] Sort name table entries in builder
...
This patch ensures that feaLib always produces a name table with entries
sorted in the order proscribed by the spec: platform id, encoding id,
language id, name id.
This breaks some tests, and so I have manually updated the test data to
match the new outputs.
2022-12-13 10:39:33 -05:00
Nikolaus Waxweiler
d584daa8fd
Blacken code
2022-12-13 11:26:36 +00:00
Behdad Esfahbod
78e10d8b42
[ttGlyphPen] Add outputImpliedClosingLine argument
...
Fixes https://github.com/fonttools/fonttools/issues/2913
2022-12-12 09:53:59 -07:00
Behdad Esfahbod
ddbbef2257
[reverseContourPen] Add outputImpliedClosingLine
...
Fixes https://github.com/fonttools/fonttools/issues/2914
2022-12-12 09:49:06 -07:00
Nikolaus Waxweiler
45c89c0700
Add DS.getAxisByTag and refactor getAxis
2022-11-14 19:15:47 +00:00
Cosimo Lupo
a1fc9b1efc
Merge pull request #2889 from fonttools/unicodedata-Zmth
...
[unicodedata] map Zmth<->math in ot_tag_{to,from}_script
2022-11-11 20:37:36 +00:00
Cosimo Lupo
3585641248
Merge pull request #2884 from fonttools/woff2-overlap-simple
...
[woff2] Support encoding/decoding OVERLAP_SIMPLE glyf flags
2022-11-11 12:23:38 +00:00
Cosimo Lupo
8697f91cdc
[unicodedata] map Zmth<->math in ot_tag_{to,from}_script
...
Fixes https://github.com/fonttools/fonttools/issues/1737
2022-11-11 12:20:37 +00:00
Cosimo Lupo
dbc3b48879
[instancer] udpdate OS/2 class and post.italicAngle when default moved (L4)
...
Previously we were only updating these when pinning wght/wdth/slnt axes.
Now we do whenever any of these axes defaults are changed, whether or not the axes are pinned or kept
Fixes https://github.com/fonttools/fonttools/issues/2885
2022-11-09 16:33:23 +00:00
Cosimo Lupo
b4e664da21
[woff2] Add support for encoding/decoding OVERLAP_SIMPLE glyf flags in WOFF2
...
Fixes #2576
This updates our woff2 encoder/decoder to support retaining the OVERLAP_SIMPLE glyf flag following the updated WOFF 2.0 specification and official google/woff2 implementation.
https://www.w3.org/TR/WOFF2/#glyf_table_format
2022-11-09 13:56:46 +00:00
Cosimo Lupo
12bf60aee0
woff2_test: [minor] remove unused local variable
2022-11-09 11:08:37 +00:00
Cosimo Lupo
04b43ed833
woff2_test: fix test_hmtx_compressed test
...
it had been failing after we renamed a name string containing 'master' => 'main; in https://github.com/fonttools/fonttools/pull/2883
2022-11-09 11:06:04 +00:00
Parag Nemade
0a176acabc
Update branch name from master to main
2022-11-09 10:11:02 +05:30
Behdad Esfahbod
672c4bacdd
[instancer.featureVars] Address review comments
2022-11-04 11:55:48 -06:00
Behdad Esfahbod
ea2ae7df86
[instancer.featureVars] Add one more test
2022-11-03 17:15:40 -06:00
Behdad Esfahbod
392706949c
[instancer.featureVars] Fix deficiency in L4 instancing
...
See discussion on the issue. I think I got this right.
Fixes https://github.com/fonttools/fonttools/issues/2737
2022-11-03 14:55:01 -06:00
Behdad Esfahbod
6e156a7f13
[instancer] Split featureVars code into own module
...
Towards fixing https://github.com/fonttools/fonttools/issues/2737
2022-11-03 14:21:27 -06:00
Behdad Esfahbod
0f48f0a5ea
[varLib/featureVars] Insert rvrn lookups at beginning
...
Fixes https://github.com/fonttools/fonttools/issues/2140
Fixes https://github.com/googlefonts/fontmake/issues/950
2022-10-28 15:45:40 -06:00
Cosimo Lupo
0c30d96906
Update instancer tests to use triples as axis limits
2022-10-21 18:01:01 +01:00
Cosimo Lupo
40b2473a48
Merge pull request #2728 from fonttools/instancer-l4
...
[instancer] Towards L4 instancing
2022-10-21 16:39:09 +01:00
Cosimo Lupo
6fd5bc270e
Merge pull request #2860 from fonttools/set-redundant-attrs
...
[otlLib|featureVars] sort name records after building STAT, set redundant Counts
2022-10-20 17:31:45 +01:00
Cosimo Lupo
41ff9511cc
otlLib: sort names after building STAT, set AxisValueCount=0
2022-10-20 16:44:02 +01:00
Jany Belluz
12d13f0b26
[designspaceLib] Fix recursion error with linkedUserValue in both directions
2022-10-18 17:32:14 +01:00
Cosimo Lupo
1dea06f66f
add tests for normalizeLocation(extrapolate=True)
...
These fails at the moment with various division-by-zero errors, fix in follow-up commit.
2022-10-13 18:35:45 +01:00
Behdad Esfahbod
e554ec1dc6
[instancer] Small fix for featureVariations instancing
2022-10-13 10:35:02 -06:00
Behdad Esfahbod
1ff1a537e8
[instancer] Implement L4 featureVariations
2022-10-13 10:35:02 -06:00
Behdad Esfahbod
3f7b250803
[instancer] Add test for FeatureVariations limiting range
2022-10-13 10:35:02 -06:00