6729 Commits

Author SHA1 Message Date
Cosimo Lupo
c8cc5e718a
Revert "Merge pull request #1429 from rsms/misc-encodeFloat-test"
This reverts commit 3f1956949a55870a97c75a27dbe59b8d617d587e, reversing
changes made to dc4600856201650d199bf7e2eddc28ba6e7aa970.
2019-01-07 11:07:17 +00:00
Cosimo Lupo
3f1956949a
Merge pull request #1429 from rsms/misc-encodeFloat-test
Adds test for misc.psCharStrings.encodeFloat that exposes a bug
2019-01-07 11:00:49 +00:00
Cosimo Lupo
68e918d32b
fontBuilder: add options to setupNameTable to disable Mac (or Win) names
as of https://github.com/fonttools/fonttools/pull/1359, both sets of names are added by
default. This allows users to optionally exclude Macintosh platform names (i.e. mac=False).
2019-01-07 10:46:48 +00:00
Cosimo Lupo
dc46008562
fontBuilder_test: Fix up expected test data for test_var.otf.ttx
after merging #1359
2019-01-07 10:36:34 +00:00
Cosimo Lupo
683547dde2
Merge pull request #1359 from justvanrossum/addmultilingualnames-mac
[name] make addMultilingualNames() add mac names by default
2019-01-07 09:54:34 +00:00
Rasmus Andersson
4208683c3d fix 2SP -> TAB indentation 2019-01-05 11:18:45 -08:00
Rasmus Andersson
4c72b8f781 Change precision to 8 digits to match AFDKO 2019-01-05 11:06:59 -08:00
Rasmus Andersson
49609c8394 fixes incorrect reduction of input list 2019-01-04 15:58:59 -08:00
Rasmus Andersson
768f8ec171 Fixes bug in misc.psCharStrings.encodeFloat and adds test 2019-01-04 15:48:14 -08:00
Rasmus Andersson
86461d6281 Adds test for misc.psCharStrings.encodeFloat that exposes a bug with "E+" 2019-01-04 15:13:01 -08:00
Cosimo Lupo
3ba285e250
Update NEWS.rst [skip ci] 2019-01-03 16:07:01 +00:00
Cosimo Lupo
f88a1f6465
Merge pull request #1425 from fonttools/varlib-build-accept-ds-object
[varLib] make `build` also accept DesignSpaceDocument objects
2019-01-03 15:42:14 +00:00
Cosimo Lupo
b0a00a806f
minor: docstring [skip ci] 2019-01-03 15:41:15 +00:00
Cosimo Lupo
448b946636
varLib/designspaceLib: require font-less source to have a path; remove getSourcePath
simpler is better. Also, refactored updatePaths and added more tests to it.
2019-01-03 14:21:09 +00:00
Cosimo Lupo
ce86397f8f
[sfnt] allways copy file data to BytesIO, not just if deepcopy failed
on py27, calling deepcopy on a file object doesn't raise TypeError, but leaves
the duplicated file object in an inconsistent state:

https://travis-ci.org/fonttools/fonttools/jobs/474811063#L714

any operations on it will fail with 'ValueError: I/O operation on uninitialized object'.
Thus, for semplicity for now we always do a manual copy the file contents into an
in-memory BytesIO stream, rather than attempting to call deepcopy first.
2019-01-03 11:53:28 +00:00
Cosimo Lupo
7d688ff18a
varLib_test: read TTFonts from compiled binary files
instead of importing from TTX, and set lazy=True so we exercise the special SFNTReader.__deepcopy__
2019-01-03 11:26:53 +00:00
Cosimo Lupo
39f49b785b
[varLib.cff]: shouldn't iterate through a dict while deleting keys
cherry-picked from https://github.com/fonttools/fonttools/pull/1415
2019-01-02 17:31:47 +00:00
Just van Rossum
1fd9bf6c29
Merge pull request #1427 from justvanrossum/fix1426
[cffLib] fixing #1426 (NameError in error code path)
2019-01-02 17:44:55 +01:00
Cosimo Lupo
b3e8f76b64
designspace_test: compare normalized paths
https://github.com/fonttools/fonttools/issues/1259#issuecomment-450910787
2019-01-02 16:33:03 +00:00
justvanrossum
612992f266 fixing #1426 2019-01-02 17:29:48 +01:00
Cosimo Lupo
e640806657
designspace: normalize platform path separator in getSourcePath 2019-01-02 16:11:32 +00:00
Cosimo Lupo
a0e4c04c1e
designspace_test: use tmpdir fixture and platform-independent path separator 2019-01-02 15:34:40 +00:00
Cosimo Lupo
3558d4e537
Merge remote-tracking branch 'origin/master' into varlib-build-accept-ds-object 2019-01-02 14:12:56 +00:00
Cosimo Lupo
88eacd3804
designspace_test: test getSourcePath method prefers 'path' attribute when present 2019-01-02 14:10:22 +00:00
Cosimo Lupo
1470ef7258
designspaceLib: add getSourcePath method
and remove BaseDocReader.getSourcePaths as it was broken anyway (it was assuming 'sources'
attribute of DesignSpaceDocument object was a dict, whereas it is now a list of
SourceDescriptor objects
2019-01-02 14:06:55 +00:00
Cosimo Lupo
5b250db6cb
varLib_test: test loading master with layerName but without required font object 2019-01-02 13:39:39 +00:00
Cosimo Lupo
9db21f1377
Merge pull request #1422 from fonttools/pyup-scheduled-update-2018-12-31
Scheduled weekly dependency update for week 52
2019-01-02 12:54:42 +00:00
Cosimo Lupo
ba197cb84c
varLib_test: no need to reload master_ttfs; reuse the reload_font helper func in the other tests 2019-01-02 12:52:57 +00:00
Cosimo Lupo
3915814ce6
setup.py: require typing>=3.6.4 on py27 to fix issue with singledispatch
Fixes #1423
2019-01-02 12:30:15 +00:00
pyup-bot
1cc95db391 Update fs from 2.1.2 to 2.1.3 2018-12-31 15:07:08 +00:00
pyup-bot
0b4663379f Update scipy from 1.1.0 to 1.2.0 2018-12-31 15:07:07 +00:00
Just van Rossum
327b05d8c0
[designspaceLib] [t1Lib] [misc.macRes] fix some cases where pathlib.Path objects were not accepted (#1421)
* fix two cases where pathlib.Path objects were not accepted

* make macRes reader accept os.PathLike objects

* use __fspath__ explicitly to support os.PathLike paths

* use __fspath__ explicitly to support os.PathLike paths

* convert tmpdir to str

* only test pathlib.Path on Python 3.6 and up
2018-12-30 12:07:05 +01:00
Cosimo Lupo
560c7558c8
SFNTReader: try deepcopy'ing first, if fails do manual copy of file contents 2018-12-20 14:28:17 +00:00
Cosimo Lupo
4001ded199
override SFNTReader __deepcopy__ for 'file' isn't copyable; use it in varLib 2018-12-20 14:18:59 +00:00
Cosimo Lupo
9b4509496f
interpolate_layout: allow to pass DesignSpaceDocument as input, like varLib.build 2018-12-20 13:00:45 +00:00
Cosimo Lupo
6f317aa362
ttFont: add copy() method that return new instance with same data
and use it in varLib to copy master font
2018-12-20 12:47:43 +00:00
Cosimo Lupo
04d506072c
rename _ensure_sources to load_masters, misc refactor 2018-12-20 12:28:31 +00:00
Nikolaus Waxweiler
596b2cef80 Extract Designspace font loader into own function 2018-12-20 08:53:28 +00:00
Nikolaus Waxweiler
79835176f3 Remove unused variable 2018-12-19 18:47:00 +00:00
Nikolaus Waxweiler
31c15b7c0e Minor reorganization 2018-12-19 18:39:47 +00:00
Nikolaus Waxweiler
67d1f3598a Be clever in what we accept
See https://github.com/fonttools/fonttools/pull/1416#issuecomment-448674815
2018-12-19 18:29:34 +00:00
Nikolaus Waxweiler
e464e450ac Make build and load_designspace accept a DS object 2018-12-19 13:40:11 +00:00
Behdad Esfahbod
8e080f2a82 [varLib] Fix merging of multiple PairPosFormat2 subtables
We should invert each ClassDef1 against its own sublookup Coverage,
not the combined one.  Oops!

Fixes https://github.com/fonttools/fonttools/issues/1411
2018-12-19 06:34:40 -05:00
Nikolaus Waxweiler
621c652ad0
[designspaceLib] Documentation: Clarify what min/max/default on an AxisDescriptor mean (#1395)
Clarify that the axis properties refer to user space coordinates
2018-12-19 11:24:07 +00:00
Denis Moyogo Jacquerye
f998688c00
Merge pull request #1413 from moyogo/STAT-1.1
Pin STAT to version 1.1
2018-12-17 20:30:32 +00:00
Cosimo Lupo
4a153333f2
README: add note about timeline of py2.py3 support
as discussed in https://github.com/fonttools/fonttools/issues/765#issuecomment-446994251
2018-12-17 18:44:18 +00:00
Cosimo Lupo
2f2ccdc2c6
Bump version: 3.34.2 → 3.34.3.dev0 2018-12-17 13:37:11 +00:00
Cosimo Lupo
ad30eeffc8
Release 3.34.2 2018-12-17 13:37:11 +00:00
Cosimo Lupo
fde8e31069
Update NEWS.rst 2018-12-17 13:36:55 +00:00
Cosimo Lupo
135a4a1914
[merge] Fix AssertionError when all DefaultLangSys offsets are NULL
Fixes https://github.com/fonttools/fonttools/issues/1408#issuecomment-447316250
2018-12-17 13:30:47 +00:00