Cosimo Lupo
8bbf30d569
subset_test: add subset of Iosekva-Medium.ttf with ContextSubstFormat3
2020-05-11 18:32:32 +01:00
Just van Rossum
d6bb38c7e6
[otlLib.builder] Add function to build STAT table from high-level description ( #1926 )
...
* added a function to build a STAT table: `fontTools.otlLib.builder.buildStatTable()`
* make `varLib._add_stat()` a client of `buildStatTable()`
2020-05-09 16:08:11 +02:00
Just van Rossum
4febf38be2
[ttLib.name] Add nameTable.findMultilingualName() method ( #1921 )
...
* add nameTable.findMultilingualName(), to find an existing multilingual name
* Make addMultilingualName() reuse nameIDs if possible when asking for a new nameID, by calling findMultilingualName()
2020-05-07 11:06:51 +02:00
justvanrossum
2242aff863
fix expected gvar output to be sorted by glyph name
2020-04-29 16:32:56 +02:00
Cosimo Lupo
c8f591ea8a
subset: remove FeatureVariations table and downgrade to version 0x10000 when empty
...
https://github.com/fonttools/fonttools/issues/1881#issuecomment-620719882
2020-04-28 18:34:15 +01:00
Khaled Hosny
d24fd71934
[feaLib] Fix building chained alt substitutions
...
Support was added in db49f20d6b2629e1ba25c4afd3fb60817387f3d6, but there
was only a parser test and no builder test, fix the build and add a
builder test based on the existing parser one.
Fixes https://github.com/fonttools/fonttools/issues/1901
2020-04-28 14:29:50 +02:00
Khaled Hosny
e0c49a1d4a
[feaLib] Improve exception message
2020-04-27 18:13:18 +02:00
Khaled Hosny
4526e164f1
[feaLib] Check lookup index in chaining lookups
...
Raise if lookup_index is None, which would happen only of the lookup
referenced belongs to the wrong table. The error message needs to be less
cryptic, though.
Fixes https://github.com/fonttools/fonttools/issues/1896
2020-04-27 02:39:33 +02:00
Cosimo Lupo
ec6205199e
subset_test: add test for dropping 'rvrn' feature and all FeatureVariationRecords
...
Added a TODO for the partial dropping of FeatureVariationRecords
https://github.com/fonttools/fonttools/issues/1881#issuecomment-619415044
2020-04-25 18:40:19 +01:00
David Corbett
036189b80a
[agl] Support legacy glyph names
...
Closes #775 .
2020-04-25 07:57:14 -04:00
Khaled Hosny
259e586f5d
[feaLib] Ignore superfluous script statements
...
Setting script that is the same as current language system should make
no effect. This is not documented in the spec, but it is what makeotf
does. This as the effect of preserving lookupflag when set before such a
script statement.
Fixes https://github.com/fonttools/fonttools/issues/1824
2020-04-20 23:45:45 +02:00
Khaled Hosny
6a24c8fed1
[feaLib] Raise for script/language in standalone lookup
...
They are not allowed per spec and makeotf, but currently we would fail
later with some cryptic error message.
2020-04-20 23:09:53 +02:00
Cosimo Lupo
f6cbc45a6a
add test files triggering the AttributeError: 'NoneType' object has no attribute 'getAlternateGlyphs'
...
https://github.com/googlefonts/fontmake/issues/648
2020-04-17 17:12:00 +01:00
Cosimo Lupo
17bff73866
Merge pull request #1822 from fonttools/otdata-colr
...
Define COLR using otData; add builders for COLRv1
2020-04-16 17:28:44 +01:00
Cosimo Lupo
1cbb28acd8
Merge pull request #1870 from anthrotype/fealib-parser-no-glyphnames
...
feaLib: without glyphNames, warn but don't parse hyphens as ranges
2020-04-16 16:16:29 +01:00
Tom
c70395fbdb
[feaLib] Raise exception when GSUB statement doesn't match a rule. ( #1876 )
...
* [feaLib] Raise exception when substitute statement doesnt match any of the rules. Add tests that trigger said exception.
2020-04-16 16:10:03 +01:00
David Corbett
c97956672e
[feaLib] Emit CID ranges with CIDs not glyph names
2020-04-03 19:40:22 -04:00
David Corbett
ec4273bbfd
[feaLib] Emit spaces around hyphens in ranges
2020-04-03 17:36:34 -04:00
Cosimo Lupo
c1af75b803
feaLib.parser: check that glyph name is actually ambiguous
...
https://github.com/fonttools/fonttools/pull/1870#discussion_r403259450
2020-04-03 21:17:02 +01:00
Cosimo Lupo
e6dfcb009b
Merge remote-tracking branch 'origin/master' into otdata-colr
2020-04-03 19:32:59 +01:00
Cosimo Lupo
a913431ecd
feaLib.parser: if no glyphNames, treat dash as names, not ranges
...
But print a warning about the possible ambiguity.
Fixes https://github.com/fonttools/fonttools/issues/1768
2020-04-03 12:42:22 +01:00
Cosimo Lupo
be77f3eeab
feaLib/parser_test: rename {Unicode,String}IO, remove misc.py23
2020-04-03 11:46:36 +01:00
Cosimo Lupo
c4aeec87dc
use ufoLib2 for cu2qu.cli and tests
...
the tests are skipped if ufoLib2 is not installed.
2020-04-01 19:23:57 +01:00
Cosimo Lupo
76cc29dda4
cu2qu: fix up imports for cu2qu.ufo, cli, and related tests
2020-04-01 19:01:32 +01:00
Cosimo Lupo
5c0d6f2a3e
Move test fonts to Tests/cu2qu/data
2020-04-01 18:59:35 +01:00
Cosimo Lupo
6ebc8249be
Move ufo.py, cli.py, __main__.py to fontTools/cu2qu
2020-04-01 18:46:48 +01:00
Cosimo Lupo
0782b4e4cf
cu2qu: Add missing Apache 2.0 header and copyright notice
2020-03-31 17:09:26 +01:00
Cosimo Lupo
c2e8403937
cu2qu: remove from __future__ imports
2020-03-31 13:38:51 +01:00
Cosimo Lupo
00058833f2
Move cu2qu.pens to fontTools.pens.cu2quPen
2020-03-31 13:34:46 +01:00
Cosimo Lupo
731b4944a6
cu2qu: fix up imports
2020-03-31 12:48:51 +01:00
Cosimo Lupo
7fa20b0b03
cu2qu: move all test files to Tests/cu2qu
2020-03-31 12:35:29 +01:00
Cosimo Lupo
3110944745
Merge remote-tracking branch 'origin/master' into otdata-colr
2020-03-23 13:09:33 +00:00
Cosimo Lupo
06fdfab9dd
Merge pull request #1858 from fonttools/basetable1.1
...
Add variable support for BASE table 1.1
2020-03-23 11:36:40 +00:00
punchcutter
aeb5149f15
Add variable support for BASE table 1.1
2020-03-20 13:34:02 -07:00
Cosimo Lupo
3997c15179
designspace_test: add tests for add*Descriptor methods
2020-03-20 16:07:30 +00:00
justvanrossum
b14e6ecf4c
update to unicode 13.0
2020-03-20 14:15:00 +01: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
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
d9144d4dfc
C_O_L_R_test: add tests for COLRv1 decompile/compile/fromXML/toXML
2020-03-11 19:01:26 +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
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
5eb11359ea
colorLib_test: add tests for more builder funcs
2020-03-09 16:58:13 +00:00