4565 Commits

Author SHA1 Message Date
Cosimo Lupo
81e0855cc7
must decode incoming user paths on py2, pyfilesystem2 requires unicode paths
with this the defcon test suite passes on both py2 and py3. I think i'm done for now.
2018-10-09 18:20:10 +01:00
Cosimo Lupo
57bc0264f5
don't attempt to remove empty optional files if writing new UFO from scratch
and don't strip trailing '/', keep input path as is. It should not be
used by anybody, anyway.
2018-10-09 17:17:40 +01:00
Cosimo Lupo
032aa7b6ac
minor: diff noise, docstrings, etc. [skip ci] 2018-10-09 15:18:33 +01:00
Cosimo Lupo
7ef045c88f
minor [skip ci] 2018-10-09 14:20:52 +01:00
Cosimo Lupo
6ec8b72b6a
remove _common module, put shared methods in ufoLib.__init__
and moved the import ufoLib.glifLib outside from global module scope to
avoid circular import issues
2018-10-09 14:13:28 +01:00
Cosimo Lupo
20c3c1b227
move datetimeAsTimestamp func to utils.py module 2018-10-09 14:03:49 +01:00
Cosimo Lupo
66ce3d50b5
move test suite outside of Lib/ufoLib
Fixes https://github.com/unified-font-object/ufoLib/issues/165
2018-10-09 13:15:54 +01:00
Cosimo Lupo
5131c1a0e6
Bump version: 2.3.2 → 2.4.0.dev0 2018-10-09 12:40:08 +01:00
Cosimo Lupo
56b4505913
various cleanups: use pyfilesystem2 API directly, remove ufoLib.filesystem
Among other things, this allows clients to inject an already
instantiated FS object in both the UFOReader/UFOWriter 'path'
argument.
2018-10-08 18:06:07 +01:00
Cosimo Lupo
52ec18be96
Merge remote-tracking branch 'origin/master' into ufoz-rebased 2018-10-03 15:52:45 +01:00
Cosimo Lupo
1692d237e7 Release 2.3.2 2018-10-02 13:53:16 +01:00
Cosimo Lupo
b19e868cd6 test note with non-ASCII characters 2018-10-02 13:31:11 +01:00
Cosimo Lupo
e658d674e0 glifLib: Element.text must be unicode, not UTF-8 bytes
Fixes https://github.com/googlei18n/fontmake/issues/467
2018-10-02 13:24:12 +01:00
Mickaël Schoentgen
52e855e4a4 Use the 'with' context manager when dealing with files 2018-10-01 08:42:45 +02: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
Mickaël Schoentgen
698aa676e8 Fix ResourceWarning: unclosed file in mtiLib 2018-09-25 23:17:34 +02:00
Mickaël Schoentgen
ee244406ee Fix several ResourceWarning: unclosed file in subset 2018-09-25 23:04:26 +02: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