justvanrossum
b14e6ecf4c
update to unicode 13.0
2020-03-20 14:15:00 +01:00
Cosimo Lupo
2a28574260
Bump version: 4.4.3 → 4.4.4.dev0
2020-03-13 15:41:35 +00:00
Cosimo Lupo
7325731702
Release 4.4.3
2020-03-13 15:41:35 +00:00
Cosimo Lupo
ffa93384d4
Update changelog [skip ci]
2020-03-13 15:41:20 +00:00
Cosimo Lupo
8d25dbcc30
Merge pull request #1857 from anthrotype/add-required-empty-gvar
...
[varLib] revert to always build gvar, even if empty
2020-03-13 15:38:54 +00:00
Cosimo Lupo
2516a42a88
[varLib] revert to always build gvar, even if empty
...
turns out gvar is required by OT spec for VF with TrueType outlines:
see https://github.com/fonttools/fonttools/issues/1855#issuecomment-598769956
2020-03-13 15:29:38 +00:00
Cosimo Lupo
42dcfddfb9
appveyor: test 3.8; don't test 3.6 anymore (already tested on Linux)
2020-03-12 18:33:11 +00:00
Cosimo Lupo
f66425997f
Enable testing on Python 3.8
2020-03-12 18:31:41 +00:00
Cosimo Lupo
e1bd27ed98
Merge pull request #1849 from fonttools/pyup-scheduled-update-2020-03-09
...
Scheduled weekly dependency update for week 10
2020-03-12 18:23:48 +00:00
Cosimo Lupo
d2bbfdb610
Merge remote-tracking branch 'origin/master' into otdata-colr
2020-03-12 17:42:56 +00:00
Cosimo Lupo
971bcbff6f
colorLib: allow color stops to be built from list of dicts as well as tuples
2020-03-12 16:03:11 +00:00
Cosimo Lupo
b7f9d8d564
colorLib: minor simplify buildPoint
...
this also allows to build from any sequence or iterable, not just tuple
2020-03-12 15:10:30 +00:00
Cosimo Lupo
f238bb4340
Bump version: 4.4.2 → 4.4.3.dev0
2020-03-12 14:18:21 +00:00
Cosimo Lupo
b6dbfa4f5c
Release 4.4.2
2020-03-12 14:18:20 +00:00
Cosimo Lupo
23b1ab25d8
Update changelog [skip ci]
2020-03-12 14:17:54 +00:00
Cosimo Lupo
59bcc0e897
Merge pull request #1852 from schriftgestalt/master
...
remove unused variable
2020-03-12 14:11:05 +00:00
Cosimo Lupo
47a201c03c
Merge pull request #1850 from simoncozens/explain-lookupflags
...
Annotate LookupFlag ttx dump
2020-03-12 13:58:39 +00:00
schriftgestalt
a0f39128d4
remove unused variable
2020-03-12 13:46:42 +01:00
Simon Cozens
681ca4ae0c
Test the flags, not the value
...
Avoids an empty comment when reserved values are used.
2020-03-12 11:51:36 +00:00
Cosimo Lupo
4433b29c55
colorLib: fix type hints of 'extend' param in buildColorLine
...
accept either int, str ('pad', 'repeat', 'reflect') or ExtendMode enums
2020-03-11 19:07:14 +00:00
Cosimo Lupo
d9144d4dfc
C_O_L_R_test: add tests for COLRv1 decompile/compile/fromXML/toXML
2020-03-11 19:01:26 +00:00
Cosimo Lupo
49d504d970
otData: fix Offset decriptions for COLRv1 subtables
2020-03-11 19:01:26 +00:00
Cosimo Lupo
8b32b79e8d
C_O_L_R_: remove unused lines
...
name attribute is always a glyph name (str), never an int
2020-03-11 19:01:25 +00:00
Cosimo Lupo
5a8830ebc9
colorLib_test: add test for buildCORL with automatic or explicit 'version'
2020-03-11 19:01:25 +00:00
Cosimo Lupo
63e2be484e
colorLib: refactor _splitSolidAndGradientGlyphs and add test
2020-03-11 14:22:58 +00:00
Simon Cozens
8fac69b0ea
Also output mark attachment class
2020-03-11 13:59:05 +00:00
Cosimo Lupo
5629d5d8d9
colorLib: allow to build Paint, ColorLine, Color from dict
2020-03-11 13:27:59 +00:00
Simon Cozens
d6d21e067d
Someone wrote more tests while I wasn't looking
2020-03-10 21:48:45 +00:00
Simon Cozens
ab075a9957
Annotate LookupFlag ttx dump
2020-03-10 21:42:28 +00:00
Cosimo Lupo
0149f40588
colorLib_test: add tests for buildLayerV1Array, buildBaseGlyphV1Array
2020-03-10 15:34:53 +00:00
Cosimo Lupo
2f264bcb76
colorLib: add separate buildLayerV1Record and buildBaseGlyphV1Record functions
2020-03-10 15:33:52 +00:00
Cosimo Lupo
44d729ad3c
colorLib: in buildColorStop accept color tuple as parameter
...
and use Sequence instead of List for input params type hints
2020-03-10 11:49:04 +00:00
Cosimo Lupo
be3265f136
colorLib_test: add tests for build{Linear,Radial}GradientPaint
2020-03-10 11:49:04 +00:00
Cosimo Lupo
b640897a9a
colorLib: must copy p1 when p2 is None
...
ot.Point is mutable
2020-03-09 19:20:15 +00:00
Cosimo Lupo
5eb11359ea
colorLib_test: add tests for more builder funcs
2020-03-09 16:58:13 +00:00
Cosimo Lupo
1362ba4ba1
colorLib: minor: rename stopOffset parameter to offset
2020-03-09 16:45:56 +00:00
Cosimo Lupo
b2a0d62295
otConverters: in _NamedTupleConverter only dump to XML non-default values
...
so we don't see varIdx='0' dumped all the time, even when there are no variations in font
2020-03-09 16:15:33 +00:00
pyup-bot
1c538f2ed7
Update lxml from 4.4.1 to 4.5.0
2020-03-09 15:30:11 +00:00
pyup-bot
fc5bb99e26
Update scipy from 1.3.1 to 1.4.1
2020-03-09 15:30:10 +00:00
Cosimo Lupo
82c2b3632f
minor: fix type hint
2020-03-09 15:01:50 +00:00
Cosimo Lupo
d098789206
default transparency is 0 (fully opaque)
...
I was confusing 'transparency' with SVG-like 'opacity' which defaults to 1.0.
Here 1.0 means fully transparent, so it makes sense the default to be 0.0 for fully opaque
2020-03-09 14:50:06 +00:00
Cosimo Lupo
e57f8b59d7
make ttLib.C_O_L_R_ a hybrid that keeps old API for v0, uses otTables for COLRv1
2020-03-06 18:39:14 +00:00
Cosimo Lupo
0e0254b0de
colorLib: add builder functions for COLRv1 tables
2020-03-06 18:37:30 +00:00
Cosimo Lupo
c42c4162c2
add otConverter for namedtuples and use it for Variable{Scalar,Position,Distance}
...
in COLRv1 all scalar values have associated varIdx to support variations. I want to load them as
immutable namedtuples, and also I want to dump them as simple XML tags with 'value' and 'varIdx'
attributes, instead of normal otTables (i.e. with nested Value and VarIdx sub-elements) as
that would make them too verbose in the XML dump.
So I made a custom _NamedTupleConverter, as a base class for VariableScalar, etc.; sub-classes
must provide a tupleClass and a list of converterClasses for each namedtuple field.
The ExtendMode enum has also a custom converter to dump it as string in the XML, and load it
as IntEnum.
fixup
2020-03-06 18:35:32 +00:00
Cosimo Lupo
4e6eec964c
COLR: remove ability to get/set by glyphID as incoherent with rest of ttLib classes
2020-03-02 13:10:47 +00:00
Cosimo Lupo
d659e055b2
Merge remote-tracking branch 'origin/master' into otdata-colr
2020-03-02 10:59:55 +00:00
Nikolaus Waxweiler
eb6b4b596c
Merge pull request #1842 from fonttools/fealib-include-error-msg
...
Add a proper message to IncludedFeaNotFound
2020-02-27 23:27:24 +00:00
Nikolaus Waxweiler
36c64087a8
Add a proper message to IncludedFeaNotFound
...
Also, minor f-string refactor.
2020-02-27 18:13:45 +00:00
Cosimo Lupo
5025035f9e
.travis.yml: try to remove 'exclude: python3.6'
2020-02-26 22:53:13 +00:00
Cosimo Lupo
31f7ce108e
.travis.yml: use python3.6 as default python
2020-02-26 22:43:21 +00:00