8196 Commits

Author SHA1 Message Date
Cosimo Lupo
82faf2addc
ufoLib_test: fix test on pypy3
shutil.rmtree doesn't like pathlib Paths on pypy3 for some reasosn
https://travis-ci.org/github/fonttools/fonttools/jobs/684236676#L592
2020-05-07 16:53:39 +01:00
Cosimo Lupo
b617ac798e
glifLib_test: add tests for GLIF format version as tuple 2020-05-07 16:53:38 +01:00
Cosimo Lupo
b82abbc10e
ufoLib_test: add tests for new formatVersion as tuple 2020-05-07 16:53:38 +01:00
Cosimo Lupo
c57e843d1f
UFOReader: close underlying fs object if UFOLibError raised in constructor 2020-05-07 16:53:38 +01:00
Cosimo Lupo
57f4904363
ufoLib/glifLib: use TupleEnum instead of namedtuple for {UFO,GLIF}FormatVersion
Also add dedicated Unsupported{UFO,GLIF}Format exceptions in
fontTools.ufoLib.errors module
2020-05-07 16:53:38 +01:00
Cosimo Lupo
f120be17e4
ufoLib/utils: define _VersionTupleEnumMixin class 2020-05-07 16:53:38 +01:00
Simon Cozens
ab7c31d4f7 [docs] Add remaining commands to doc index 2020-05-07 14:55:55 +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
Cosimo Lupo
37ff36bdd1
Merge pull request #1925 from dscorbett/unicode-13-rtl
[unicodedata] Update `RTL_SCRIPTS` for Unicode 13.0
2020-05-07 08:47:54 +01:00
David Corbett
ac44a7f61d unicodedata: Update RTL_SCRIPTS for Unicode 13.0 2020-05-06 17:16:37 -04:00
Cosimo Lupo
c066cfc4d5
WIP: ufoLib: support UFO formatVersionMinor and GLIF formatMinor 2020-05-05 18:52:30 +01: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
854629a310
Merge pull request #1916 from fonttools/revert-1913-fonttools-cli-help
Revert "[doc] Add help options to fonttools CLI"
2020-05-04 17:37:52 +01:00
Cosimo Lupo
d91724d76c
Revert "[doc] Add help options to fonttools CLI" 2020-05-04 17:37:24 +01:00
Cosimo Lupo
cfe4eb039a
Merge pull request #1913 from simoncozens/fonttools-cli-help
[doc] Add help options to fonttools CLI
2020-05-04 17:35:58 +01:00
pyup-bot
130b256727 Update sphinx from 3.0.2 to 3.0.3 2020-05-04 16:37:06 +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
Simon Cozens
52298f273c [docs] Update buildTableList to write documentation into ttx.rst
Have to do this a little bit differently because of the way that RtD handles comments/code blocks.
2020-05-03 22:53:59 +01:00
Simon Cozens
d51566a2c3
Update README.rst
Grammar nit

Co-authored-by: Chris Simpkins <git.simpkins@gmail.com>
2020-05-03 22:48:06 +01:00
Simon Cozens
7a59d8105b [doc] Tidy up top-level access to documentation
* List all modules and utilities
* Move wordy optional requirements to separate page
* Remove cruft from README and add pointers to online documentation
2020-05-03 22:04:55 +01:00
Simon Cozens
9691acb15d [docs] Make front page user-facing, separate developer info 2020-05-03 22:03:26 +01:00
Simon Cozens
7b894956d5 [doc] Add a doc coverage report
So we know how bad things are
2020-05-03 22:03:26 +01:00
Chris Simpkins
f47a9cf204
fix instancer documentation 2020-05-02 11:00:29 -04:00
Cosimo Lupo
ad4bc6f151
Merge pull request #1911 from fonttools/ufolib-only-write-any-in-info
[ufoLib] Only write fontinfo.plist when there is content
2020-04-30 11:20:52 +01:00
Nikolaus Waxweiler
f30e41b863 [ufoLib] Only write fontinfo.plist when there is content 2020-04-30 11:11:43 +01:00
justvanrossum
2242aff863 fix expected gvar output to be sorted by glyph name 2020-04-29 16:32:56 +02: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
292f95f3cc
Update changelog [skip ci] 2020-04-29 11:41:03 +01:00
Cosimo Lupo
70f0bb3570
Merge pull request #1904 from anthrotype/transform-named-tuple
transform: make Transform class a NamedTuple
2020-04-29 11:36:38 +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
fc10f74a19
Merge pull request #1903 from anthrotype/remove-feature-variations
subset: remove FeatureVariations, downgrade GSUB/GPOS to version 1 when empty
2020-04-29 11:06:23 +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
Cosimo Lupo
3f7b042e37
Update changelog [skip ci] 2020-04-28 18:06:21 +01:00
Cosimo Lupo
9279f93de6
MANIFEST.in: add icon files so Docs built from sdist have correct images 2020-04-28 17:21:58 +01:00
Khaled Hosny
05306f4468
Merge pull request #1902 from khaledhosny/fealib-altsubst-chain
[feaLib] Fix building chained alt substitutions
2020-04-28 14:47:44 +02: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
Cosimo Lupo
effb5601ec
Merge pull request #1898 from khaledhosny/fealib-hide-traceback
[feaLib] Hide traceback by default on command line
2020-04-27 10:01:38 +01: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
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
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