8321 Commits

Author SHA1 Message Date
Simon Cozens
2cef07af80
[doc] Add help options to fonttools CLI (#1920)
This adds a `help` verb (and `--help` option) to the `fonttools` command line tool. Submodules will be listed in the help text if they have an importable `main` function with a docstring, and `main`'s docstring will be used as the one-line description for the help text.
2020-05-12 06:31:13 +01:00
Simon Cozens
b299bfb389
[feaLib] Support multiple lookups per glyph position (#1905)
This allows for more than one "lookup ..." chaining statements at each glyph position in a chaining contextual substitution or positioning rule: e.g.

    sub a b c' lookup lookup1 lookup lookup2 d;

The corresponding change in the Adobe OpenType Feature File Specification (and implementation in makeotf) happened in adobe-type-tools/afdko#1132.
2020-05-12 06:28:25 +01:00
Cosimo Lupo
0a26a8d287
glifLib: document default when formatVersion=None 2020-05-11 18:50:45 +01:00
Cosimo Lupo
8bbf30d569
subset_test: add subset of Iosekva-Medium.ttf with ContextSubstFormat3 2020-05-11 18:32:32 +01:00
Just van Rossum
a53bb37d8e
Merge pull request #1938 from justvanrossum/meta-comment
[ttLib.table._m_e_t_a] if data happens to be ascii, emit comment in TTX
2020-05-11 18:47:56 +02:00
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
Cosimo Lupo
798608b371
Merge pull request #1927 from simoncozens/no-mktemp
Don’t use deprecated mktemp, use mkstemp instead
2020-05-11 11:10:10 +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
justvanrossum
0dc0222f59 if the binary data happens to be ascii, emit a comment with an ascii representation 2020-05-08 10:37:01 +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
a59166bbb6
Merge pull request #1914 from simoncozens/documentation
Tidy up top-level documentation and README
2020-05-07 21:45:58 +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
Simon Cozens
43cdc50e82 Don’t use deprecated mktemp, use mkstemp instead 2020-05-07 20:58:48 +01:00
Cosimo Lupo
c1cbc28568
Merge pull request #1915 from fonttools/pyup-scheduled-update-2020-05-04
Scheduled weekly dependency update for week 18
2020-05-07 17:08:35 +01:00
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