5264 Commits

Author SHA1 Message Date
Cosimo Lupo
890c5061b5
subset: fix issue subsetting Context{Subst,Pos}Format3
Fixes https://github.com/fonttools/fonttools/issues/1879

In ChainContext{Subst,Pos}Format3, the array of input coverages is called
InputCoverage, whereas in non-Chain Context{Subst,Pos}Format3 subtables it
is called simply Coverage.
2020-05-11 13:32:18 +01:00
Cosimo Lupo
b81d13952a
Merge pull request #1932 from simoncozens/pscharstring-repeated-init
[misc.psCharStrings] Use inheritance to avoid repeated code in initializer
2020-05-11 11:15:54 +01:00
Cosimo Lupo
74867c6ddb
Merge pull request #1931 from simoncozens/fix-typo
Fix typo in loggingTools variable name
2020-05-11 11:15:16 +01:00
Cosimo Lupo
8853d56567
Merge pull request #1930 from simoncozens/python3-inheritance
Use Python3 inheritance style for super.___init__
2020-05-11 11:14:31 +01:00
Cosimo Lupo
5128715565
Merge pull request #1929 from simoncozens/woff2-repeated-init
Use inheritance to avoid repeated code in WOFF2FlavorData initializer
2020-05-11 11:12:52 +01:00
Cosimo Lupo
07e3cf7ef6
Merge pull request #1928 from simoncozens/unused-loop-variable
Use _ to denoted unused loop variable
2020-05-11 11:10:57 +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
Simon Cozens
50c77c138e
Merge pull request #1934 from simoncozens/agl-docs
[docs] Document agl.py
2020-05-08 07:03:42 +01:00
Simon Cozens
bd39b85c9d Typos 2020-05-07 21:58:41 +01:00
Simon Cozens
9b6fed82ca [docs] Document agl.py 2020-05-07 21:31:44 +01:00
Simon Cozens
b69052de47 [misc.psCharStrings] Use inheritance to avoid repeated code in initializer 2020-05-07 21:21:40 +01:00
Simon Cozens
f52eabeefe Fix typo in loggingTools variable name 2020-05-07 21:18:29 +01:00
Simon Cozens
eda4a2717e Use Python3 inheritance style for super.___init__
Avoids cases where super() argument is not enclosing class: https://help.semmle.com/wiki/display/PYTHON/First+argument+to+super%28%29+is+not+enclosing+class
2020-05-07 21:09:20 +01:00
Simon Cozens
253de13377 Use inheritance to avoid repeated code in WOFF2FlavorData initializer 2020-05-07 21:04:52 +01:00
Simon Cozens
46c8f90da8 Use _ to denoted unused loop variable 2020-05-07 21:00:28 +01: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
David Corbett
ac44a7f61d unicodedata: Update RTL_SCRIPTS for Unicode 13.0 2020-05-06 17:16:37 -04:00
Cosimo Lupo
63df810c5e
Merge pull request #1912 from fonttools/chrissimpkins-varlib-instancer-docs
varLib.instancer documentation fix
2020-05-04 17:45:07 +01:00
Cosimo Lupo
3da104eef5
Merge pull request #1908 from justvanrossum/sort-gvar-issue1907
[TTX] sort gvar XML output by glyph name, not glyph order
2020-05-04 17:43:55 +01:00
Cosimo Lupo
d91724d76c
Revert "[doc] Add help options to fonttools CLI" 2020-05-04 17:37:24 +01:00
Simon Cozens
c8c0a0d178 Move help from package to module 2020-05-04 12:55:48 +01:00
Simon Cozens
f4841c1b0d Address feedback, reformat, simplify, fix bugs and typo 2020-05-04 11:46:32 +01:00
Simon Cozens
02f23a214c [doc] Add help options to fonttools CLI 2020-05-03 22:59:54 +01:00
Chris Simpkins
f47a9cf204
fix instancer documentation 2020-05-02 11:00:29 -04:00
Nikolaus Waxweiler
f30e41b863 [ufoLib] Only write fontinfo.plist when there is content 2020-04-30 11:11:43 +01:00
justvanrossum
b4c5b07741 sort XML output by glyph name 2020-04-29 16:31:54 +02:00
justvanrossum
f7f01b3c1a add getGlyphNames() to FakeFont 2020-04-29 16:31:30 +02:00
Cosimo Lupo
e70f656d00
Bump version: 4.9.0 → 4.9.1.dev0 2020-04-29 11:41:15 +01:00
Cosimo Lupo
39a91156e7
Release 4.9.0 2020-04-29 11:41:14 +01:00
Cosimo Lupo
9bdab32082
remove __nonzero__ as it's only for py2 2020-04-29 11:23:29 +01:00
Cosimo Lupo
dbc9d132c0
transform: make Transform class a NamedTuple
This removes some boilerplate code, and also helps when using static type checkers like mypy.
The typing.NamedTuple class was added with python 3.6 which is our min required python, so we are good.
2020-04-29 11:11:39 +01: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
1d2d5b345b
Merge pull request #1897 from khaledhosny/issue-1896
[feaLib] Check lookup index in chaining lookups
2020-04-27 18:38:51 +02:00
Khaled Hosny
e0c49a1d4a [feaLib] Improve exception message 2020-04-27 18:13:18 +02:00
Khaled Hosny
3d6c759ea3 [feaLib] Hide traceback by default on command line
Makes the command line tool a little nicer to use. Adds --traceback
option to show them when needed.
2020-04-27 02:53:32 +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
8825e19615
Merge pull request #1882 from fonttools/subset-feature-variations
[subset] FeatureVariations subsetting is wrong
2020-04-25 15:20:55 +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
Behdad Esfahbod
cab7d13dc0 [subset] FeatureVariations subsetting is wrong
Fixes https://github.com/fonttools/fonttools/issues/1881
2020-04-20 12:10:05 -07:00
Cosimo Lupo
dfd2ffe751
Bump version: 4.8.1 → 4.8.2.dev0 2020-04-17 18:05:07 +01:00
Cosimo Lupo
6b14e3b223
Release 4.8.1 2020-04-17 18:05:06 +01:00
Cosimo Lupo
5777c2e057
feaLib.builder: skip getAlternateGlyphs if lookup is None in ChainContextSubstBuilder
Fixes https://github.com/googlefonts/fontmake/issues/648
2020-04-17 17:22:45 +01:00
Cosimo Lupo
a6e050ab09
Bump version: 4.8.0 → 4.8.1.dev0 2020-04-16 17:43:56 +01:00
Cosimo Lupo
206f569d48
Release 4.8.0 2020-04-16 17:43:55 +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