6763 Commits

Author SHA1 Message Date
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
Cosimo Lupo
74ec7cec2a
Bump version: 3.34.1 → 3.34.2.dev0 2018-12-17 13:16:01 +00:00
Cosimo Lupo
1dbfb09587
Release 3.34.1 2018-12-17 13:16:00 +00:00
Jens Kutilek
b8ae79cc09
Update NEWS.rst 2018-12-17 14:08:34 +01:00
Behdad Esfahbod
9c3dde3ce6 [varLib] Always write tuple entries for composite glyphs (#1383)
* [varLib] Always write tuple entries for composite glyphs

Fixes https://github.com/fonttools/fonttools/issues/1381
Fixes https://github.com/googlei18n/fontmake/issues/481 partially

* Make sure at least one gvar delta is written for composites

* Add test data for composite fix

* Put in the correct issue link

* Typo

* Fix typos

* Expand comment, add link to issue

* Add ttx files for test font
2018-12-17 14:03:40 +01:00
Denis Moyogo Jacquerye
c48a7b94c1 [varLib] downgrade STAT to version=0x00010001 in tests 2018-12-17 10:31:35 +00:00
Denis Moyogo Jacquerye
acd2a61543 [varLib] downgrade default STAT version=0x00010001 2018-12-14 15:04:32 +00:00
Cosimo Lupo
6e1e0b73f1
Bump version: 3.34.0 → 3.34.1.dev0 2018-12-14 11:19:05 +00:00
Cosimo Lupo
c14701c820
Release 3.34.0 2018-12-14 11:19:04 +00:00
Cosimo Lupo
1fdc055294
Merge pull request #1409 from madig/update-changelog-3.34.0
Update changelog [skip ci]
2018-12-14 10:36:39 +00:00
Nikolaus Waxweiler
305b1ee2c5 Update changelog [skip ci] 2018-12-14 10:31:19 +00:00
Cosimo Lupo
fa69bb0d94
Merge pull request #1406 from madig/plistlib-accept-mapping-for-dict
[plistlib] Treat Mapping objects as dicts
2018-12-13 16:12:36 +00:00
Nikolaus Waxweiler
3b2bfcf29a Treat Mapping objects as dicts 2018-12-13 15:44:25 +00:00
Behdad Esfahbod
03ad219493
Merge pull request #1402 from fonttools/clean-cff2vf-2
cff2 vf fixes. Make calc_bounds work, fix subsetting bug.
2018-12-11 20:31:11 -05:00
Behdad Esfahbod
b0e8161915
Merge pull request #1405 from fonttools/clean-cff2-3
Clean cff2 3
2018-12-11 20:09:03 -05:00
ReadRoberts
3a04a73b0c [cff2 varlib subset] Clean up syntax
x != None -> x is not None.
2018-12-11 17:07:51 -08:00
ReadRoberts
ebc1b0b779 [cff2 varlib subset] Add message to assert for when a CFF2 charstring has an initial width. 2018-12-10 10:44:59 -08:00