8734 Commits

Author SHA1 Message Date
Nikolaus Waxweiler
f7546baf00 Complete implementation of TTGlyphPen 2021-02-21 10:20:59 +00:00
Nikolaus Waxweiler
8a55182f37 Make NullPen inherit from AbstractPen 2021-02-21 10:20:48 +00:00
Nikolaus Waxweiler
ab1883da1d Turn AbstractPen and AbstractPointPen into ABCs plus typing 2021-02-21 10:20:37 +00:00
Denis Moyogo Jacquerye
4fb22eed1b
Merge pull request #2193 from moyogo/feaLib-indent-anchors
[feaLib] Format anchors one per line instead of all on the same line
2021-02-19 14:31:40 +00:00
Simon Cozens
2ef7964e90 If we swapped the segments, we must swap them back when returning results 2021-02-18 22:12:20 +00:00
Denis Moyogo Jacquerye
2563b1df7e [feaLib] black ast.py 2021-02-18 19:19:18 +00:00
Denis Moyogo Jacquerye
537fabcee9 [feaLib] update tests for indented anchors 2021-02-18 19:19:18 +00:00
Denis Moyogo Jacquerye
e47101d683 [feaLib] indent anchor statements 2021-02-18 17:14:57 +00:00
Cosimo Lupo
a12669c936
Merge pull request #2194 from fonttools/fix-master-main
remame 'master' -> 'main' in worflows/test.yml
2021-02-18 15:42:08 +00:00
Cosimo Lupo
b77d520b48
remame 'master' -> 'main' in worflows/test.yml 2021-02-18 15:39:52 +00:00
Simon Cozens
1795ee98b2 Address various feedback 2021-02-18 14:54:27 +00:00
Simon Cozens
fdceeee0c6 Unnecessary parens 2021-02-18 11:39:46 +00:00
Simon Cozens
c082616c6f Make hacky uniquifying thing more explicit 2021-02-18 11:39:36 +00:00
Simon Cozens
80a3227f44 Raise error in unknown curve degrees 2021-02-18 11:39:01 +00:00
Simon Cozens
6a223e5f93 Rename parameters 2021-02-18 11:38:40 +00:00
Simon Cozens
2e211194c8 No harm in handling all segment types here 2021-02-18 11:23:24 +00:00
Simon Cozens
c17b1c9e9f Oops, this has a different interface to the curve-based ones 2021-02-18 11:20:45 +00:00
Simon Cozens
01957a9b94 Intersection and point-at-time functions from beziers.py 2021-02-18 10:49:52 +00:00
Simon Cozens
8e42f693a7 Add function to compute bounding box area 2021-02-18 10:48:09 +00:00
Cosimo Lupo
51882b3dd5
Update NEWS.rst
forgot to mention that v4.20.0 also added support for COLRv1 and CPAL subsetting
2021-02-15 17:30:22 +00:00
Cosimo Lupo
9c4228222c
Bump version: 4.20.0 → 4.20.1.dev0 2021-02-15 17:08:54 +00:00
Cosimo Lupo
f426430dc1
Release 4.20.0 2021-02-15 17:08:53 +00:00
Cosimo Lupo
0219c4871d
Update changelog [skip ci] 2021-02-15 17:08:10 +00:00
Simon Cozens
bac9a1cba3
Merge pull request #2185 from simoncozens/fontbuilder
fontBuilder improvements
2021-02-15 15:23:32 +00:00
Cosimo Lupo
6fa5aa5ea6
Merge pull request #2177 from fonttools/subset-colrv1
Subset COLRv1 & prune unused CPAL entries
2021-02-15 12:12:27 +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
109c07d16c
subset: support subsetting COLRv1 base glyphs
In COLR.closure_glyphs augment the subset with the glyphs rechable from the COLRv1 base glyphs already in the subset.
In COLR.subset_glyphs, subset and rebuild LayerV1List and BaseGlyphV1List with the base glyphs to keep. Drop COLR if emptied
2021-02-15 11:15:42 +00:00
Cosimo Lupo
4dcc7f83d2
otTables: add Paint.traverse method
paint graph traversal mostly adapted from rsheeter's https://github.com/googlefonts/nanoemoji/pull/233
2021-02-15 11:12:16 +00:00
Cosimo Lupo
4036512a27
C_O_L_R_: factor out method to convert v0 layer records to dict of list
we'll need that when we subset the COLRv0 portion of a COLRv1 table
2021-02-15 11:12:16 +00:00
Cosimo Lupo
dda10e0f00
WIP: add test_subset_COLRv1 2021-02-15 11:12:16 +00:00
Cosimo Lupo
7878c32a85
Merge pull request #2182 from fonttools/colrv1_static
Update otData for static vs variable formats of COLR v1
2021-02-15 11:00:01 +00:00
rsheeter
404072ee99
Fix descriptions in Lib/fontTools/ttLib/tables/otData.py
Co-authored-by: Cosimo Lupo <cosimo@anthrotype.com>
2021-02-15 10:42:59 +00:00
rsheeter
7abd234929
Update tests for new formats 2021-02-15 10:42:59 +00:00
rsheeter
2df3fed98a
Prevent otConverters from ignoring the 'template' type when field name is also a type 2021-02-15 10:42:58 +00:00
rsheeter
f1ecccbbb8
Begin updating for static vs variable versions of COLR v1 Paint 2021-02-15 10:42:55 +00:00
Cosimo Lupo
6106bf7c14
Merge pull request #2181 from fonttools/colr_to_from_dicts
Use otData for dict to COLR conversion
2021-02-15 10:36:52 +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
rsheeter
ec77db3619 Update Lib/fontTools/colorLib/builder.py
Co-authored-by: Cosimo Lupo <cosimo@anthrotype.com>
2021-02-12 10:02:08 -08:00
Simon Cozens
4fb666fee9 Remove tautology 2021-02-12 12:43:58 +00:00
Simon Cozens
3871537abd Update test expectations; multilingual names got shared instead of duplicated 2021-02-12 12:11:51 +00:00
Simon Cozens
1c259eee5f Let instances optionally be InstanceDescriptors
Because if you've got an AxisDescriptor, you've probably got one of
those as well...
2021-02-11 16:07:05 +00:00
Simon Cozens
285f861e45 Localize instance subfamily name too. 2021-02-11 16:05:02 +00:00
Simon Cozens
d470ea4870 Typo 2021-02-11 15:53:35 +00:00
Simon Cozens
04f04474fd Reformat with black for ease of further maintenance 2021-02-11 15:49:21 +00:00
Simon Cozens
4a8617fc92 New setAvar method 2021-02-11 15:46:05 +00:00
Simon Cozens
731f6a3107 Take AxisDescriptor (or objects conforming to its interface) in addFvar 2021-02-11 15:44:54 +00:00
Simon Cozens
8a58225e6d Typo 2021-02-11 15:27:40 +00:00