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
Cosimo Lupo
70c2f88187
Revert "travis: sudo is no longer required for python3.7 env"
...
This reverts commit 6c1537dafd89ba7d1b3fd5227d413fe45e322516.
Does not quite work yet without sudo. not sure why.
Let's keep it in.
https://twitter.com/cosimolupo/status/1052139428418899968
2018-10-16 11:09:49 +01:00
Cosimo Lupo
6c1537dafd
travis: sudo is no longer required for python3.7 env
...
https://github.com/deadsnakes/travis-ci-python3.7-example#update-2018-07-03
2018-10-16 11:01:37 +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
49c7bd1e1d
Release 3.0.0
2018-10-11 11:31:35 +01:00
Cosimo Lupo
71d3f553a4
Merge pull request #174 from unified-font-object/mit
...
relicense as MIT
2018-10-11 11:20:35 +01:00
Cosimo Lupo
8cb02c041e
relicense as MIT
...
https://github.com/fonttools/fonttools/issues/1095#issuecomment-428533389
2018-10-11 10:53:48 +01:00
Cosimo Lupo
befcb4d57e
Merge pull request #1332 from fonttools/otf2ttf-files
...
otf2ttf. Support multiple input files
2018-10-11 07:58:55 +01:00
Miguel Sousa
fdc4bb7354
otf2ttf. Add option to overwrite existing files
2018-10-10 18:13:02 -07:00
Miguel Sousa
75e3546b3c
otf2ttf. Support multiple input files
2018-10-10 18:01:38 -07:00
Cosimo Lupo
59cb035cdf
minor: ensure self._path is a unicode string
2018-10-10 18:26:14 +01:00
Cosimo Lupo
58455d9c9b
setModificationTime should not warn if path does not exist
...
the self._path argument of UFOWriter is not always an existing local filesystem
path. It may be a fallback string repr like '<memfs>' when the filesystem
being used does not map to the local OS filesystem (like MemoryFS)
2018-10-10 15:30:31 +01:00
Cosimo Lupo
1c05b67e1c
warn if passed an explicit 'structure' argument with dest being an FS object
...
it doesn't make sense to say structure='zip' if we are saving to an already instantiated
FS object. The 'structure' keyword argument only makes sense when the destination is
a path string, where we have a choice whether to create either a UFOZ (zipfile) or a
normal UFO package.
For an already instantiated FS object, we always write it out as a flat package,
without the root contents subfolder.
2018-10-10 15:28:15 +01:00
Cosimo Lupo
b84eb25a50
glifLib: do not cache the output of getGLIF
...
Fixes https://github.com/unified-font-object/ufoLib/issues/80
2018-10-10 12:37:32 +01:00
Cosimo Lupo
5b85d8eaba
README: remove mention of 'ufo4' branch [skip ci]
...
that work has been merged. We keep the branch for historical reasons mostly.
2018-10-10 11:01:55 +01:00
Cosimo Lupo
f2018e2a26
skip (and warn) if could not set modified time
...
Fixes https://github.com/unified-font-object/ufoLib/issues/48
2018-10-10 10:54:57 +01:00
Cosimo Lupo
9b88135931
accept both int or long as valid integer types on py27
...
Fixes https://github.com/unified-font-object/ufoLib/issues/52
2018-10-10 10:54:57 +01:00
Cosimo Lupo
a09abd7feb
add UFOFileStructure enum to __all__
2018-10-10 10:54:57 +01:00
Cosimo Lupo
14dd3347f1
make _sniffFileStructure private
2018-10-10 10:54:57 +01:00
Cosimo Lupo
dfe3cb5ea0
requirements.txt: pin enum34 version
2018-10-10 10:54:57 +01:00
Cosimo Lupo
ccec17dd4d
Merge pull request #172 from unified-font-object/ufoz-rebased
...
Add ZIP support to UFO (rebased)
2018-10-09 18:37:42 +01:00
Cosimo Lupo
7101e62863
Bump version: 2.4.0.dev0 → 3.0.0.dev0
2018-10-09 18:33:14 +01:00
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
Khaled Hosny
24226fd592
Put back __future__ import
2018-10-09 18:43:34 +02:00
Cosimo Lupo
37e3f3bcb3
Add tests/test_UFOZ.py
...
we'll add more tests later
2018-10-09 17:32:15 +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
Khaled Hosny
e1047a3177
Sort imports
...
Also remove unused __future__ imports.
2018-10-09 17:25:40 +02:00
Khaled Hosny
13de4f30c2
[Snippets] Improve otf2ttf.py post table message
2018-10-09 17:25:40 +02:00
Khaled Hosny
5ad27dfb40
[Snippets] Handle post table overflow in otf2ttf.py
...
Fixes https://github.com/fonttools/fonttools/issues/1329
2018-10-09 17:25:40 +02:00
Khaled Hosny
c9f79af8ce
[Snippets] Allow otf2ttf.py to take in TTC fonts
...
Processes individual faces only, though. No support for writing out font
collections.
2018-10-09 17:25:40 +02:00
Cosimo Lupo
3bb859fe90
tests: add *.ufoz test file
...
Compressed using `zip` utility
$ cd tests/testdata
$ zip -9 -r "TestFont1 (UFO3).ufoz" "TestFont1 (UFO3).ufo"
2018-10-09 15:47:46 +01:00
Cosimo Lupo
7321c2d91f
tests: add UFO3 test font
2018-10-09 15:42:58 +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
3de05dde2f
remove runTests helper, just use pytest as runner from now on
2018-10-09 13:44:34 +01:00
Cosimo Lupo
c40bfd3a0d
setup.cfg: ignore deprecation warnings that we ourselves raise in tests
2018-10-09 13:31:56 +01:00
Cosimo Lupo
fa68a5dc94
MANIFEST.in: add tests modules and data files to sdist
2018-10-09 13:18:43 +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
7426785166
tox.ini: update fs to 2.1.1
2018-10-03 13:04:49 +01:00
Cosimo Lupo
1692d237e7
Release 2.3.2
2018-10-02 13:53:16 +01:00
Cosimo Lupo
bfc95edf43
travis: update encrypted PyPI credentials; use twine directly to upload
2018-10-02 13:50:56 +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
Ben Kiel
b1ec81ab56
Merge pull request #171 from unified-font-object/pyup-scheduled-update-2018-09-24
...
Scheduled weekly dependency update for week 38
2018-10-01 11:26:48 -05:00
Mickaël Schoentgen
52e855e4a4
Use the 'with' context manager when dealing with files
2018-10-01 08:42:45 +02:00