Marc Foley
fcc02826b4
Implement Cosimo feedback from previous pr
2021-02-26 10:31:53 +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
336e7827e7
Implement Cosimo feedback
2021-02-26 10:19:43 +00:00
Marc Foley
daf6427b0b
Implement Adobe ps naming for instantiated instances
2021-02-26 10:19:43 +00:00
Marc Foley
de38c9ce96
Tidy up variable name and run through black
2021-02-26 10:19:43 +00:00
Marc Foley
5eac886e5a
Only create typographic subfamily name if there are nonRibbi tokens
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
bef1d08c0b
instancer: updateNameTableStyleRecords use strings as input instead of axis values
2021-02-26 10:19:43 +00:00
Marc Foley
11f0ade44c
cleanup _updateUniqueIdNameRecord
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
0b639c2979
instancer: use bit mask for axisValue flags
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
2fd934051b
Refactor axisValuesFromAxisLimits
2021-02-26 10:19:42 +00:00
Marc Foley
4cd0fb80f6
Fix typos
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
Simon Cozens
60c1ee0107
Black whole module
2021-02-26 10:03:37 +00:00
Simon Cozens
1a3478da0e
Fixes from review
2021-02-26 10:03:32 +00:00
Cosimo Lupo
9aeb48286d
black
2021-02-25 17:16:02 +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
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
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
e47101d683
[feaLib] indent anchor statements
2021-02-18 17:14:57 +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
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
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
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