3599 Commits

Author SHA1 Message Date
Cosimo Lupo
b23a208805
ufoLib: fix doctests failing on py27 for unicode_literals
I hate doctests.
2018-10-18 15:40:32 +01:00
Cosimo Lupo
8ba98afb92
etree: remove 'XMLTreeBuilder' from __all__
only present in py27 elementtree:
6e57382464/Lib/xml/etree/ElementTree.py (L1676-L1677)
2018-10-18 15:40:32 +01:00
Cosimo Lupo
3e19f6d985
keep fontTools.ufoLib.etree as a shim module for fontTools.misc.etree 2018-10-18 11:12:08 +01:00
Cosimo Lupo
081b0fc090
keep fontTools.ufoLib.plistlib compatibility shim
the old readPlist, writePlist are only kept in fontTools.ufoLib.plistlib,
not in fontTools.misc.plistlib
2018-10-18 11:11:34 +01:00
Cosimo Lupo
176b5f763d
change 'import ufoLib' to 'import fontTools.ufoLib' 2018-10-17 17:43:28 +01:00
Cosimo Lupo
7ee7ccd568
move ufoLib.etree to fontTools.misc.etree
we can use this ElementTree-like XML API for ttx or designspaceLib, not
just ufoLib
2018-10-17 17:30:39 +01:00
Cosimo Lupo
e42bfd65f4
move ufoLib.plistlib to fontTools.misc.plistlib
As PLIST are not only UFOs (e.g. DesignSpace documents)
2018-10-17 17:29:34 +01:00
Cosimo Lupo
1f7155c432
Merge branch 'fold-into-fontTools' into fonttools-ufolib 2018-10-17 17:21:44 +01:00
Cosimo Lupo
7cd80a37dd
move Lib/ufoLib to Lib/fontTools/ufoLib 2018-10-17 17:05:17 +01:00
Cosimo Lupo
935aad1a25
DefaultTable: pass extra **kwargs in toXML (for glyf table class)
when ttx fails to decompile a buggy glyf table, the DefaultTable implementation is used,
but TTFont._tableToXML passes 'splitGlyphs' keyword argument to table.toXML when
the tag is 'glyf'.
Let's simply ignore it here.
2018-10-16 17:21:50 +01:00
Behdad Esfahbod
c4b475852d [varLib.merger] Implement FeatureVariations instantiation
Fixes https://github.com/fonttools/fonttools/issues/1244
2018-10-14 23:25:56 -07:00
Cosimo Lupo
0245f2c55a
loggingTools: add msg=None argument to CapturingLogHandler.assertRegex
like all the rest of unittest.TestCase assertSomething
2018-09-28 19:10:50 +01:00
Behdad Esfahbod
d258333007 [iup] Fix comment 2018-09-27 17:41:09 -04:00
Rob McKaughan
7d59b729ab Include nameIDs referenced by STAT table 2018-09-26 14:50:22 -04:00
Sascha Brawer
2011ccf6ec [morx] Clean up compilation of AAT action tables; add more tests 2018-09-24 20:15:54 +02:00
Sascha Brawer
4a1871ff62 [morx] Support AAT action type to insert glyphs 2018-09-24 18:14:01 +02:00
Michiharu Ariza
90176ef842 --no-hinting to drop LanguageGroup etc 2018-09-19 22:33:39 +02:00
Cosimo Lupo
ac933ac2d3
Bump version: 3.30.0 → 3.30.1.dev0 2018-09-18 16:22:57 +01:00
Cosimo Lupo
1699384cef
Release 3.30.0 2018-09-18 16:22:57 +01:00
Cosimo Lupo
6deeb70acb
Revert "Merge pull request #1289 from BlackFoundry/master"
This reverts commit 492c8cef106dbcc0b8154bcc969b77777906b009, reversing
changes made to 4bf522abe3b2c65f54699b748336f31a9ce8a3ea.
2018-09-18 14:24:44 +01:00
Cosimo Lupo
492c8cef10
Merge pull request #1289 from BlackFoundry/master
[merge] CFF tables
2018-09-16 22:09:25 +02:00
Khaled Hosny
baf4f560bb [feaLib] Skip noop class PairPos subtables
If Coverage is None then the subtable is a noop that does nothing and
there is no point in building it. As a bonus, it makes OTS happy since
it will reject subtables where coverageOffset is NULL (0) and the spec
does not say whether this is allowed or not.
2018-09-16 12:23:34 +02:00
Cosimo Lupo
9536541aba
feaLib: demote warning about redefined kern pairs to debug message
https://github.com/fonttools/fonttools/issues/1147#issuecomment-421539956
2018-09-15 10:09:49 +02:00
Cosimo Lupo
0431360cf2
Merge pull request #1314 from anthrotype/varlib-feature-variations
[varLib] implement building GSUB FeatureVariations from DesignSpace rules
2018-09-14 17:25:44 +02:00
Cosimo Lupo
9f18570aac
implement building GSUB FeatureVariations from DS rules
Fixes https://github.com/fonttools/fonttools/issues/1176
2018-09-14 16:16:33 +02:00
Jens Kutilek
7c8077a63d Add glyf flags bit6 to ttx output (#1316)
* Implement glyf outline flags bit 6 when decompiling/compiling

* Add test data for outline flag bit 6

* Rename flags, use bitwise OR for setting flag bit

* Remove unneeded code
2018-09-14 15:27:32 +02:00
Jeremie Hornus
35ec0cf0f3 some fixes 2018-09-14 12:41:16 +02:00
Cosimo Lupo
5c2ea41fa6
Merge pull request #1310 from paullinnerud/master
TSIC table support a Visual TrueType source table
2018-09-14 11:40:43 +02:00
Cosimo Lupo
26ddbcfe46
varLib: return a namedtuple from load_designspace
so we can also return the list of parsed rule elements
2018-09-12 19:16:13 +02:00
Cosimo Lupo
8080690c74
interpolate_layout: use DesignSpaceDocument instead of varLib.designspace 2018-09-11 18:33:07 +02:00
Cosimo Lupo
5457270775
designspaceLib: 'axes' element is required by DesignSpaceDocument, remove fallback code 2018-09-11 18:25:43 +02:00
Cosimo Lupo
0f4bdf65e6
varLib: use designspaceLib instead of varLib.designspace
and replace _DesignspaceAxis with AxisDescriptor
2018-09-11 18:16:52 +02:00
Cosimo Lupo
76ba93e6db
designspaceLib: only raise when 'No axis defined' when self._strictAxisNames=True (default) 2018-09-11 18:12:25 +02:00
Cosimo Lupo
95f1909849
designspaceLib: add map_forward/backward methods to AxisDescriptor class 2018-09-11 18:10:51 +02:00
Cosimo Lupo
d8d8ed4016
designspaceLib: add asdict() method to descriptor objects
useful when pretty-printting in the logger
2018-09-11 18:09:22 +02:00
Cosimo Lupo
c960a361a8
mutator: use piecewiseLinearMap instead of _DesignspaceAxis._map 2018-09-11 18:07:15 +02:00
Cosimo Lupo
8900505200
models: add piecewiseLinearMap function
copied from fontTools.varLib._DesignspaceAxis._map static method.
I place it here since it is also used by varLib.mutator, so makes sense
to have a public function
2018-09-11 18:06:06 +02:00
Cosimo Lupo
5f1844165e
varLib.designspace: add a deprecation warning 2018-09-11 18:02:49 +02:00
Cosimo Lupo
6cfa1a0bea
designspaceLib: add fromfile, fromstring and tostring methods 2018-09-11 15:12:43 +02:00
Behdad Esfahbod
1bec227849 [subset] Fix partial subsetting of AlternateSubst 2018-09-10 15:12:38 +02:00
Behdad Esfahbod
022536212b [subset] Add --no-layout-closure
As oft requested.

I think this fixes https://github.com/fonttools/fonttools/issues/43
2018-09-10 15:09:11 +02:00
Cosimo Lupo
388e0893fb
Bump version: 3.29.1 → 3.29.2.dev0 2018-09-10 10:26:41 +02:00
Cosimo Lupo
8b8384887e
Release 3.29.1 2018-09-10 10:26:40 +02:00
Cosimo Lupo
de471fdec6
Merge pull request #1307 from silnrsi/fixlangsys
Fix default lookups for a language
2018-09-07 12:20:26 +01:00
Martin Hosken
59a4e934ee Get the fix we want 2018-09-07 15:37:33 +07:00
Cosimo Lupo
32aef4fc88
[G__l_o_c] import sys 2018-09-06 10:05:26 +01:00
Behdad Esfahbod
349cd94d17 [graphite] Fix for big-endian
Make all "if sys.byteorder..." and "byteswap" be on the same line for
earsier grep verification.

Fixes https://github.com/fonttools/fonttools/issues/1311
2018-09-05 21:12:53 -07:00
Paul Linnerud
df429df9ec TSIC Support for Visual TrueType
TSIC is a source table for Visual TrueType to maintain sources for the cvar variation table.
2018-08-22 16:48:42 -07:00
Martin Hosken
0902cea8b6 Fix default lookups for a language 2018-08-17 10:32:55 +07:00
Behdad Esfahbod
c895f4f4a2 [subset] Add --layout-scripts
Fixes https://github.com/fonttools/fonttools/issues/1303
2018-08-01 14:29:06 -07:00