6497 Commits

Author SHA1 Message Date
Cosimo Lupo
57f6e310f3
varLib_test: test axes with non-english labelnames 2019-01-13 13:43:00 +00:00
Cosimo Lupo
1a07ba9bc4
Doc/designspaceLib: clarify labelNames values must always be unicode
otherwise, on py27, we end up writing garbage bytes in name record
strings.
2019-01-13 13:40:04 +00:00
Cosimo Lupo
acbc65c1a9
varLib: use addMultilingualName method to support localized axes 'labelname'
now that addMultilingualName method also adds mac names by default, we can use it in
varLib instead of addName.
The language identifiers are expected to be minimized, i.e. not contain default script/region
subtags -- until we implement the minimizeSubtags algorithm from ICU/CLDR:
https://github.com/fonttools/fonttools/issues/930
2019-01-13 13:39:15 +00:00
Just van Rossum
b920b3b36f
Merge pull request #1434 from justvanrossum/fontbuilder-uvs
[fontBuilder] adding support for cmap format 14 Unicode Variation Sequences
2019-01-09 16:27:21 +01:00
justvanrossum
1a8cccc818 explicitly test glyphName = None 2019-01-09 16:14:22 +01:00
justvanrossum
863bdb60c8 allow dumping/verifying a custom subset of the tables 2019-01-09 15:02:48 +01:00
justvanrossum
55ea94efbb swapped two sections for clarity 2019-01-09 14:59:00 +01:00
justvanrossum
391f7a76c0 added support for cmap format 14 Unicode Variation Sequences 2019-01-09 14:53:35 +01:00
Cosimo Lupo
a4ca702733
Bump version: 3.35.1 → 3.35.2.dev0 2019-01-09 11:15:01 +00:00
Cosimo Lupo
f3b80d3a2b
Release 3.35.1 2019-01-09 11:15:01 +00:00
Cosimo Lupo
486d40d7fb
Update NEWS.rst 2019-01-09 11:14:53 +00:00
Miguel Sousa
eb13709d51
Merge pull request #1433 from fonttools/maxp-recalc
[maxp] Include 'maxComponentElements' in the table's recalculation
2019-01-09 03:13:14 -08:00
Miguel Sousa
f07d5e7dc0 [maxp] Include 'maxComponentElements' in the table's recalculation 2019-01-09 03:03:32 -08:00
Cosimo Lupo
29818c1ccf
Bump version: 3.35.0 → 3.35.1.dev0 2019-01-07 13:48:20 +00:00
Cosimo Lupo
9c5882014b
Release 3.35.0 2019-01-07 13:48:19 +00:00
Cosimo Lupo
54364413ea
Update NEWS.rst [skip ci] 2019-01-07 11:37:07 +00:00
Cosimo Lupo
eb6ee2cdd3
Merge pull request #1431 from fonttools/fontbuilder-no-mac-names
fontBuilder: add options to setupNameTable to disable Mac (or Win) names
2019-01-07 11:10:18 +00:00
Cosimo Lupo
44b1613cad
Merge pull request #1430 from rsms/cff-encode-float
Fixes bug in misc.psCharStrings.encodeFloat and adds test
2019-01-07 11:09:09 +00:00
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