Khaled Hosny
5e3774bd7b
Remove py23 from the documentation
...
We don’t want anyone to use it anymore.
2021-08-20 01:31:50 +02:00
Khaled Hosny
232b2ccbc4
Move the rest of py23 module to textTools
...
Change all imports to use textTools module, except the test_py23.py test
which is kept until we decide to remove the module (if ever).
2021-08-20 01:29:45 +02:00
Cosimo Lupo
99743c14df
subset: explicitly subset ClipList, avoids warning when lazy-loading
...
relying on ClipList.compile to drop unused clips based on updated glyphOrder won't work when font is loaded lazily (default for subsetter), because ClipList gets decompiled too late (after glyphOrder has already been modified) and this produces warnings about missing glyphIDs.
Better to make the subsetter explicilty prune unused clips.
2021-08-18 09:42:10 +02:00
Cosimo Lupo
f04cb29fc4
Bump version: 4.26.2 → 4.26.3.dev0
2021-08-09 11:59:12 +02:00
Cosimo Lupo
02cd740c5c
Release 4.26.2
2021-08-09 11:59:11 +02:00
Cosimo Lupo
8f34fcc5cd
Update changelog [skip ci]
2021-08-09 11:59:00 +02:00
Cosimo Lupo
6d3bd9499f
Merge pull request #2390 from fonttools/fix-colr-composite-mode
...
[COLRv1] Add missing CompositeMode.PLUS
2021-08-09 11:41:47 +02:00
Cosimo Lupo
d025bb8ba7
fix NameError while decompiling ClipList
...
when range references a missing glyph ID, the loop must continue
2021-08-09 11:30:00 +02:00
Cosimo Lupo
9f7a4ea3e7
otTables: fix CompositeMode enum missing PLUS mode
...
Our enumeration of CompositeMode was missing one COMPOSITE_PLUS mode (12)...
see 'PaintComposite' paragraph in https://github.com/googlefonts/colr-gradients-spec/blob/main/OFF_AMD2_WD.md
2021-08-09 11:27:46 +02:00
Cosimo Lupo
627d8e6ee6
fontBuilder: pass through varIndexMap and clipBoxes parameters in setupCOLR
2021-08-09 11:24:41 +02:00
Cosimo Lupo
032befd2ea
Bump version: 4.26.1 → 4.26.2.dev0
2021-08-03 15:24:56 +02:00
Cosimo Lupo
6a1eaa1fd0
Release 4.26.1
2021-08-03 15:24:55 +02:00
Cosimo Lupo
f18cccebc7
Update changelog [skip ci]
2021-08-03 15:24:46 +02:00
Cosimo Lupo
e49c1df63f
Merge pull request #2386 from fonttools/transform-vector
...
add Transform.transformVector method
2021-08-03 12:13:48 +01:00
Cosimo Lupo
9c37862087
add Transform.transformVector method
...
Adds a transformVector and transformVectors methods to the Transform class. Useful for things like https://github.com/googlefonts/ufo2ft/pull/515
2021-08-03 11:49:44 +02:00
Cosimo Lupo
3047ce0006
Bump version: 4.26.0 → 4.26.1.dev0
2021-08-03 10:39:47 +02:00
Cosimo Lupo
5f25059c25
Release 4.26.0
2021-08-03 10:39:47 +02:00
Cosimo Lupo
12fc4dd9af
NEWS.rst: Add note about dropping support for python 3.6 from next release [skip ci]
2021-08-03 10:34:20 +02:00
Cosimo Lupo
85f2bf9a86
Update changelog [skip ci]
2021-08-03 10:33:10 +02:00
Cosimo Lupo
e161bbc980
Merge pull request #2384 from fonttools/newline-2021
...
Default to "\n" for newlinestr instead of None
2021-08-03 09:21:10 +01:00
Cosimo Lupo
094a40ca2e
Revert "Deprecate and ignore newlinestr"
...
This reverts commit 5af178ac8eb2da79b965be5c6cee693dad602c65.
2021-08-03 10:00:13 +02:00
Cosimo Lupo
01b0180ce1
Revert "Deprecate and ignore ttx’s --newline option"
...
This reverts commit 3042f129fc6012bd96668831b18d0926c634f7df.
2021-08-03 10:00:01 +02:00
Cosimo Lupo
745a6a6ea2
Merge pull request #2379 from fonttools/colr-clip-list
...
[colrv1] otData: define ClipList, ClipBox, etc.
2021-08-03 08:49:37 +01:00
Cosimo Lupo
58ac5a9fd8
have ClipList and ClipBox format start at 1, not 0
...
b7e81fcbd6
2021-08-02 19:34:30 +02:00
Cosimo Lupo
5cb288f345
Merge pull request #2382 from fonttools/ignore-overlap-errors-option
...
instancer: add --ignore-overlap-errors option
2021-08-02 10:34:18 +01:00
Khaled Hosny
3042f129fc
Deprecate and ignore ttx’s --newline option
2021-07-30 04:48:11 +02:00
Khaled Hosny
5af178ac8e
Deprecate and ignore newlinestr
2021-07-30 04:31:19 +02:00
Khaled Hosny
000bf81700
Default to "\n" for newlinestr instead of None
...
If newlinestr is None, os.linesep is used, bu it is the third millennium
and we don’t need or want different line endings per-platform.
2021-07-30 04:12:33 +02:00
Cosimo Lupo
971043374e
instancer: add --ignore-overlap-errors option
...
This is to be able to ignore tricky glyphs that sometimes trip up Skia PathOps.Simplify operation.
We have no idea how to fix this upstream (short of having the glyphs redrawn), and perfect is the enemy of good..
2021-07-29 16:59:04 +02:00
Cosimo Lupo
800bf85b2f
add ClipList.Format so we can bump when we finally get >16bit GIDs
...
https://github.com/googlefonts/colr-gradients-spec/issues/346
2021-07-29 15:35:08 +02:00
Cosimo Lupo
9876f3c5c0
address review comments
2021-07-29 15:06:16 +02:00
Cosimo Lupo
bee2c85f61
[colrv1] otData: define ClipList, ClipBox, etc.
2021-07-28 18:04:48 +02:00
Cosimo Lupo
c552a77fea
Bump version: 4.25.2 → 4.25.3.dev0
2021-07-26 18:37:20 +01:00
Cosimo Lupo
f3a903093a
Release 4.25.2
2021-07-26 18:37:19 +01:00
Cosimo Lupo
1c1001245c
Update changelog [skip ci]
2021-07-26 18:35:20 +01:00
Cosimo Lupo
2f1fbd6374
Merge pull request #2372 from fonttools/colrv1-var-idx-map
...
[COLRv1] add DeltaSetIndexMap, remove ColorIndex
2021-07-26 12:06:15 +01:00
Just van Rossum
b01ea60e9e
[ttLib] when importing XML, only set sfntVersion if the font has no reader and is empty ( #2376 )
...
* Only set sfntVersion if the font has no reader and is empty
* test that sfntVersion is only set if the TTFont instance is new/empty
2021-07-24 11:12:37 +02:00
Cosimo Lupo
c96c3ef8fa
Merge pull request #2359 from fonttools/colrv1-transform-reduced-prec
...
[COLRv1] reduced precision transforms, angles as F2Dot14, centers as FWORD, offsetted Affine2x3
2021-07-23 17:36:41 +01:00
Cosimo Lupo
b74ffb4cda
test roundtripping variable COLRv1 with a working VarIndexMap and VarStore
2021-07-23 17:27:57 +01:00
Cosimo Lupo
29a2ebf813
omit default VarIndexBase
...
4294967295 (0xFFFFFFFF in decimal form) is not very memorable.
Still, using hex notation for all VarIndexBases would make the non-default values less readable (when interpreted as an index into the DeltaSetIndexMap array, decimal makes more sense).
Since 0xFFFFFFFF means 'no variation data', it makes sense to omit it from the ttx dump and write an empty <VarIndexBase/> element with no value.
We also allow to build Var tables without needing to pass "VarIndexBase": 0xFFFFFFFF in the source dict.
2021-07-23 17:27:57 +01:00
Cosimo Lupo
11871673ff
[subset] fixed CPAL pruning after removal of ColorIndex
2021-07-23 17:27:57 +01:00
Cosimo Lupo
6ba0163614
fix C_O_L_R_test.py following recent changes
2021-07-23 17:27:57 +01:00
Cosimo Lupo
e5d0c00fab
fix colorLib tests after adding VarIndexBase, ColorIndex removed, etc.
2021-07-23 17:27:57 +01:00
Cosimo Lupo
e8e2aa530b
remove unused Variable{Float,Int} namedtuples from otTables/otConverters
2021-07-23 17:27:57 +01:00
Cosimo Lupo
0eb27e9878
Remove and inline {Var,}ColorIndex
2021-07-23 17:27:57 +01:00
Cosimo Lupo
40897a1508
Define DeltaSetIndexMap table used for COLR.VarIndexMap
...
https://github.com/googlefonts/colr-gradients-spec/pull/316
2021-07-23 17:27:57 +01:00
Cosimo Lupo
60f0724144
remove wrapping around from Angle converter, let the struct.error propagate
2021-07-19 17:52:00 +01:00
Cosimo Lupo
12d66ded12
Bump version: 4.25.1 → 4.25.2.dev0
2021-07-16 16:04:30 +01:00
Cosimo Lupo
8eea964661
Release 4.25.1
2021-07-16 16:04:30 +01:00
Cosimo Lupo
c467bd2f35
Update changelog [skip ci]
2021-07-16 16:04:06 +01:00