Cosimo Lupo
ea489baaf1
Release 3.35.2
2019-01-14 14:26:24 +00:00
Cosimo Lupo
0ca13f8e5a
Update NEWS.rst [skip ci]
2019-01-14 14:26:16 +00:00
Cosimo Lupo
f782a1197b
Merge pull request #1439 from anthrotype/hmtx-without-hhea
...
{v,h}mtx: allow to compile/decompile even without {v,h}hhea table
2019-01-14 13:59:58 +00:00
Cosimo Lupo
8350332461
{v,h}mtx: allow to compile/decompile even without {v,h}hhea table
...
when no horizontal/vertical header table is present, we assume numberOfHMetrics == maxp.numGlyphs.
This allows to compile/decompile incomplete fonts, only containing head, maxp, hmtx, loca and glyf (or CFF),
that is the bare minimum to temporarily store glyph outline and metrics data for use with sparse/intermediate
master TTFs in varLib.
See https://github.com/googlei18n/ufo2ft/issues/308
2019-01-14 13:45:24 +00:00
Cosimo Lupo
36da84db01
Update NEWS.rst [skip ci]
2019-01-13 17:24:08 +00:00
Cosimo Lupo
fe19178ff0
Merge pull request #1438 from anthrotype/enable-varLib-labelNames
...
[varLib] use addMultilingualName method to support localized axis and instance names
2019-01-13 17:07:31 +00:00
Cosimo Lupo
48e72dab9b
varLib: use addMultilingualName for localised instance style names
...
designspaceLib: ensure instance localised names are set as unicode strings
2019-01-13 15:04:55 +00:00
Cosimo Lupo
e6d5b5531a
mutator: drop 'ltag' table if no longer referenced from 'name' table
2019-01-13 14:42:36 +00:00
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
justvanrossum
d938668cc2
some purely cosmetic whitespace edits
2019-01-10 19:35:34 +01:00
Just van Rossum
6f7c0f1d09
[ttLib] cmap format 14 cleanup ( #1437 )
...
* cleanup cmap format 14 TTX format by removing redundant attributes
* don't output the name attr for a default mapping, instead of a glyph named 'None'
* still accept 'None' as an indicator glyph name, for bw compatibility
* swap order of TTX attrs uv and uvs
* make sure (unicode, glyphName) pairs are always tuples in uvsDict.
2019-01-10 19:19:35 +01:00
Just van Rossum
855378477f
[ttLib] adding a test for cmap format 14 (unicode variation sequences) ( #1436 )
...
Adding a test for cmap format 14 (unicode variation sequences), in preparation for #1435
2019-01-10 16:48:10 +01: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