8269 Commits

Author SHA1 Message Date
justvanrossum
39301b235a whitespace 2020-07-23 07:12:34 +02:00
justvanrossum
2bc53e75ad add hashbang and comment; add +x mode 2020-07-23 07:11:11 +02:00
justvanrossum
a95aace05e add snippet that shows how to decompose glyphs in a TTF 2020-07-23 07:07:01 +02:00
Simon Cozens
d6ba64fcb6
Merge pull request #2026 from simoncozens/named-tuple-contextuals
Use namedtuple to represent contextual rules
2020-07-22 15:35:59 +01:00
Simon Cozens
e3e12fe60d Fix mock builder test 2020-07-22 14:20:50 +01:00
Simon Cozens
85edf0e380 Use the ChainContextualRule class instead of bare tuples 2020-07-22 14:20:50 +01:00
Simon Cozens
b9f2482c42 Add a ChainContextualRule class 2020-07-22 14:20:50 +01:00
Cosimo Lupo
74e5945fec
Merge pull request #2025 from simoncozens/reformat-fealib-otllib
Reformat feaLib and otlLib
2020-07-22 15:17:54 +02:00
Simon Cozens
ae5e000e29 Run black on all these too. 2020-07-15 17:16:12 +01:00
Simon Cozens
8590bcf06d Reformat with black 2020-07-15 17:12:46 +01:00
Simon Cozens
e58fea95ce Reformat with black 2020-07-15 14:14:01 +01:00
Simon Cozens
69a76e9dd8 Reformat with black. 2020-07-15 13:25:33 +01:00
Cosimo Lupo
b7c2e3d174
Merge pull request #2021 from fonttools/pyup-scheduled-update-2020-07-13
Scheduled weekly dependency update for week 28
2020-07-14 15:22:50 +02:00
pyup-bot
b63ed40edf Update scipy from 1.4.1 to 1.5.1 2020-07-13 17:43:06 +02:00
pyup-bot
baecf39d9e Update reportlab from 3.5.42 to 3.5.44 2020-07-13 17:43:06 +02:00
pyup-bot
4415f92855 Update sphinx_rtd_theme from 0.4.3 to 0.5.0 2020-07-13 17:43:05 +02:00
pyup-bot
d96cda7427 Update sphinx from 3.0.3 to 3.1.2 2020-07-13 17:43:04 +02:00
Simon Cozens
cbe6d3a3f4
Merge pull request #2016 from simoncozens/gsub5-gpos7-lookups
Generate GSUB5/GPOS7 lookups (See #1856)
2020-07-11 21:51:47 +01:00
Simon Cozens
c1a885ad55 Missed stylistic fix 2020-07-11 19:58:06 +01:00
Simon Cozens
0b39745890 Restore test for chaining version 2020-07-11 19:56:29 +01:00
Simon Cozens
b6f7b2dc4b Stylistic fixes from feedback 2020-07-11 19:54:52 +01:00
Cosimo Lupo
9856c1e41e
Bump version: 4.13.0 → 4.13.1.dev0 2020-07-10 12:48:00 +01:00
Cosimo Lupo
c30a5fc117
Release 4.13.0 2020-07-10 12:47:59 +01:00
Cosimo Lupo
da211824e2
Update changelog [skip ci] 2020-07-10 12:46:35 +01:00
Cosimo Lupo
4594a0c378
Merge pull request #2008 from fonttools/colrv1-rev2
Update COLRv1 impl following proposed changes in the draft spec
2020-07-10 09:57:00 +01:00
Cosimo Lupo
09c0e42031
Partly revert "use 32-bit GlyphIDs in COLRv1 baseGlyphs and layers"
This reverts commit 690080b14d9a4f193092ffc172a39b3e212d307c.

We keep 16-bit GlyphIDs for COLRv1 tables, at least for now
https://github.com/googlefonts/colr-gradients-spec/pull/24

I keep the GlyphID32 converter in case we may need it in the future.
2020-07-08 16:06:45 +01:00
Simon Cozens
8c3dfc4e33 Refactor subtable/lookup record building code
It's a bit gross, but I'm blaming OpenType for that. I'm doing this now because otherwise it would be even more repetitive once we start adding format 1 Rule and Ruleset subtables.
2020-07-07 17:35:16 +01:00
Simon Cozens
6d4c5fe31c Rename GPOS8->GPOS7 2020-07-07 13:35:33 +01:00
Simon Cozens
4adea942cc Fix varlib test expectations - now badly named. 2020-07-07 13:33:32 +01:00
Simon Cozens
bc0f69884e Thinko 2020-07-07 13:28:44 +01:00
Simon Cozens
7db13c9872 Fixup test expectations 2020-07-07 13:24:41 +01:00
Simon Cozens
e8798059f2 Rename test 2020-07-07 13:20:57 +01:00
Simon Cozens
2cf9f681a2 Fix test expectation. Test is now badly named. 2020-07-07 13:19:50 +01:00
Simon Cozens
f04ffe4131 Make non-chaining contextuals where we can. (Fixes #1856) 2020-07-07 13:19:36 +01:00
Simon Cozens
df3e08bb22 Add a function to set coverage for GSUB5/GPOS7 lookups 2020-07-07 13:15:27 +01:00
Simon Cozens
06c270582a Begin to use the new rulesets. Be explicit that we are building Format 3 lookups right now. 2020-07-07 12:48:53 +01:00
Simon Cozens
9f4cc2f1cb Introduce the concept of a ClassContextualRuleSet
Currently unused but will be super helpful for optimizing the formats of contextual lookups.

* Splits the rules of a class contextual lookup based on explicit subtable breaks
* Returns various properties on the ruleset to help determine appropriate layout format.
* (More properties, such as "touched glyphs", planned - will be added when needed.)
2020-07-07 12:44:25 +01:00
Simon Cozens
26072943c3
Merge pull request #2014 from simoncozens/remove-macos-module
Remove MacOS module references. Fixes #1978.
2020-07-07 09:36:42 +01:00
Simon Cozens
18a978bd3d Remove MacOS module references. Fixes #1978. 2020-07-07 09:08:10 +01:00
Simon Cozens
097b48461d
Merge pull request #2013 from simoncozens/fix-2012
Fix documentation for MultipleSubstStatement (fixes #2012)
2020-07-07 08:59:14 +01:00
Simon Cozens
8370849678 Fix documentation for MultipleSubstStatement (fixes #2012) 2020-07-07 08:41:06 +01:00
Cosimo Lupo
64731aedd0
Merge remote-tracking branch 'origin/master' into colrv1-rev2 2020-07-03 12:58:57 +01:00
Simon Cozens
73631c9642
otlLib documentation (#2009)
Document otlLib

Includes other minor changes:

* When a markFilterSet parameter is passed to a builder, LOOKUP_FLAG_USE_MARK_FILTERING_SET will be added to the lookup's flags.
* The unused arguments valueformat1 and valueformat2 were removed from ClassPairPosSubtableBuilder.
2020-07-03 12:52:50 +01:00
Simon Cozens
1ed5916a8a Fix *all* docs about markFilterSet, not just the first one... 2020-07-03 12:50:57 +01:00
Simon Cozens
ece76d36e2 Unnecessary comments 2020-07-03 12:39:21 +01:00
Simon Cozens
f54528a70b Remove unused arguments to ClassPairPosSubtableBuilder 2020-07-03 12:39:11 +01:00
Simon Cozens
3b50a533d5 otlLib now sets this flag itself. 2020-07-03 12:37:22 +01:00
Simon Cozens
8e0b1fbfe2 Allow location to be optional. 2020-07-03 12:35:55 +01:00
Simon Cozens
c43b58c973 Force mark filtering flag set. 2020-07-03 12:35:43 +01:00
Simon Cozens
e501dbb693 Add name to contributors 2020-07-03 11:39:18 +01:00