Cosimo Lupo
bf87025826
designspaceLib: fix formatting of DesigSpaceError exception
...
https://travis-ci.org/googlei18n/fontmake/jobs/390821469#L498
2018-06-11 16:35:02 +01:00
Cosimo Lupo
7a38a711be
ttx_test: last version digit may contain '\n' char
...
fixes https://travis-ci.org/fonttools/fonttools/jobs/390768657#L668
2018-06-11 14:15:18 +01:00
Cosimo Lupo
bf5c3a42c6
Bump version: 3.27.0 → 3.27.1.dev0
2018-06-11 14:05:04 +01:00
Cosimo Lupo
4cfb4f8389
Release 3.27.0
2018-06-11 14:05:03 +01:00
Cosimo Lupo
1c7c639b28
Update changelog
2018-06-11 14:04:47 +01:00
Cosimo Lupo
2e797a902d
Merge pull request #1271 from anthrotype/pr/1211
...
rebase #1211
2018-06-11 12:33:40 +01:00
ReadRoberts
c239d1a03d
[cffLib] Fix bug in cffLib.py.CFFFontSet.convertCFFToCFF2() that broke converting name-keyed fonts.
...
Also clean up setting FontDict to support CFF2.
2018-06-11 12:09:00 +01:00
ReadRoberts
528bc8ff17
[cffLib] Use std operator delattr() instead of exec ("del ...")
2018-06-11 12:09:00 +01:00
ReadRoberts
942a7610fd
[cffLib] Fix bugs in converting CFF to CFF2 when the font has an FDArray.
...
The FontDict as well as the PrivateDict needs to have fields removed when these are deprecated in CFF2.
2018-06-11 12:09:00 +01:00
ReadRoberts
21bbb15cd0
[cffLib] Fix bugs in compiling a CFF2 font with an FDArray.
...
A FontDict in CFF2 is permitted only a subset of the fields supported by CFF 1.0.
2018-06-11 12:09:00 +01:00
Cosimo Lupo
6bc44c8b05
Merge pull request #1230 from anthrotype/fix-coords-overflow
...
Fix GlyphCoordinates overflow
2018-06-07 15:59:23 +01:00
Cosimo Lupo
d9f7a26027
_g_l_y_f_test: test _checkFloat upgrades to double when overflowing short int
2018-06-07 15:40:50 +01:00
Cosimo Lupo
846941c8ef
[glyf] ensure GlyphCoordinates never overflow
...
in _checkFloat (used whenever we're about to update the inner array) we check whether the value exceeds a short integer, and if so we convert the array to floats.
Also, we make sure we call __setitem__ (which in turn calls _checkFloat) instead of updating the inner array directly in the rest of the math methods.
2018-06-07 12:53:42 +01:00
Cosimo Lupo
e48e8ea7c9
Revert "models: convert delta array to float if overflows signed short integers"
...
This reverts commit 0055f9414ca5094b0c9beb0176ac4998cdbbba70.
2018-06-07 12:53:42 +01:00
Cosimo Lupo
565e835c92
designspaceLib: cleanup formatting, remove unused vars, etc.
2018-06-07 12:44:49 +01:00
Cosimo Lupo
cafb373bfb
Doc: fix RST formatting
2018-06-07 12:00:29 +01:00
Cosimo Lupo
d7714ead35
designspaceLib: use LogMixin; fix undefined name
...
'ruleObject' name in _readConditionElements was undefined
2018-06-07 11:43:14 +01:00
Cosimo Lupo
fbab1227ce
loggingTools: memoize 'log' property of LogMixin
...
the logger name is constant (based on the user class's name and module)
so we can cache it.
(this means the LogMixin will only work on regular dict-based classes,
not on 'slotted' classes. But that's ok
2018-06-07 11:40:33 +01:00
Cosimo Lupo
65eac8ef92
Merge pull request #1267 from fonttools/designspaceLib-checkDefault
...
designspaceLib remove checkDefault, checkAxes
2018-06-07 11:14:43 +01:00
Cosimo Lupo
a84c097c10
py23: alias itertools.izip as 'zip'
...
so we consistently use python3 zip iterator on both py2 and py3
2018-06-06 18:21:15 +01:00
Cosimo Lupo
b38e2bd8ac
varLib.plot: use plot, not plot_wireframe, as we are using 1D lists
...
plot_wireframe requires 2D arrays.
In recent versions of matplotlib passing a 1D array fails with an error:
https://stackoverflow.com/questions/47225830/axes3d-plot-wireframex-y-z-error
https://github.com/matplotlib/matplotlib/pull/5166
https://github.com/matplotlib/matplotlib/issues/3116
2018-06-06 12:43:05 +01:00
Cosimo Lupo
80bfc3ccd5
Snippets: add rename-fonts.py to append a suffix to all family names
2018-06-05 21:41:11 +01:00
Erik van Blokland
e4c90b9afe
WIP uncomment test for conditions without min or max.
...
Add _axesAsDict to the test because there it is needed.
2018-05-30 22:26:59 +02:00
Erik van Blokland
554aa362bd
WIP Change warnings.warn to logger.info and logger.warning.
...
findDefault only looks for the sourceDescriptor on the default of all axes. Returns None otherwise.
Remove _axesAsDict - not needed.
Shortened logger name to "DesignSpaceLog"
2018-05-30 22:21:05 +02:00
Erik van Blokland
855a475ad2
WIP removed test for incomplete rules. Added test for stray conditions. Removed high unicode character from lib test. Read stray unwrapped conditions, put them in a conditionset.
2018-05-27 19:18:13 +02:00
Erik van Blokland
a24b00ba14
WIP Comments.
2018-05-27 12:36:57 +02:00
Erik van Blokland
6c649aa023
Remove checkAxes()
2018-05-27 12:19:16 +02:00
Erik van Blokland
8582dbdd2a
WIP. Some comments.
2018-05-27 09:50:00 +02:00
Erik van Blokland
1f7f4e42ab
WIP reformat some of the docstrings.
2018-05-25 15:22:00 +02:00
Erik van Blokland
b774d8c3e8
WIP remove fontTools.varLib import.
2018-05-25 11:46:44 +02:00
Erik van Blokland
16cba5ad81
WIP Remove _locationFromElement. Single method for newDefaultLocation. Split some of the tests into smaller things. Add some thoughts to normaliseLocation and why this needs a separate method from the one in varLib.
2018-05-25 11:43:58 +02:00
Erik van Blokland
46bfc1c907
WIP Rename self.axes and self.rules attributes of the reader and writer to self._axes and self._rules
...
Comment out self._locationFromElement - not sure why it exists, let's see if someone complains.
Only raise missing axes error if we read a location *and* we have no axes. This allows a designspace file with a lib but without sources.
Only do findDefault() if we have sources.
2018-05-24 22:47:31 +02:00
Erik van Blokland
9d91c82bbe
WIP test documentLib. Add a warning if a findDefault can't find a suitable location.
2018-05-24 21:49:33 +02:00
Erik van Blokland
07fb8abac3
WIP
...
Add clarification about document.lib keys using reverse domain name notation.
Add test for document.lib with some nested data.
2018-05-24 21:42:21 +02:00
Cosimo Lupo
01173c4599
Merge pull request #1261 from chrissimpkins/ttx-tests
...
Add ttx tests
2018-05-23 20:13:22 +01:00
Erik van Blokland
3b6708940f
WIP remove guessAxes
2018-05-23 16:15:14 +02:00
Erik van Blokland
086de222fa
WIP axes are compulsory, so don't accomodate missing axes. Raise error if document is missing axes.
...
We know what the default location is before we start reading the masters and there is no guessing.
findDefault() method: default master is at all default values of all axes, or if that fails, the master with the copyInfo flag.
Warn if a location contains an axis that is not defined in the axes element. Otherwise ignore this value, no guessing.
Remove rulesToFeature() function.
2018-05-23 13:19:23 +02:00
Cosimo Lupo
299320d0b1
Snippets/layout-features.py: allow to load from ttx file
2018-05-23 11:50:40 +01:00
Chris Simpkins
90f3ddf463
[tox.ini] remove unnecessary zopfli dependency
...
this was added to requirements.txt to support ttx testing in the ttx_test.py module
2018-05-22 15:21:23 -04:00
Chris Simpkins
4602f75729
[requirements.txt] add zopfli dependency at version 0.1.4
...
zopfli at tagged release zopfli-1.0.2
2018-05-22 15:20:29 -04:00
Chris Simpkins
b52ddaddeb
convert new ttx tests to py.path.local path joins and file checks
2018-05-22 15:13:51 -04:00
Chris Simpkins
f2eb328125
parametrize ttCompile timestamp tests
2018-05-22 07:50:23 -04:00
Chris Simpkins
c2fe5d25fd
test formatting changes
2018-05-22 00:41:22 -04:00
Chris Simpkins
267d314233
[ttx] remove unreachable code
2018-05-21 23:50:26 -04:00
Cosimo Lupo
bbd1ba64b2
Merge pull request #1263 from mashabow/patch-1
...
Fix formatting of DesignSpaceDocument spec
2018-05-21 20:13:38 +01:00
Cosimo Lupo
fc6f758d20
feaLib: add __all__ to ast module
...
for * imports
2018-05-21 12:40:14 +01:00
Masaya Nakamura
29d3abe920
Fix formatting of DesignSpaceDocument spec
2018-05-21 16:07:09 +09:00
Chris Simpkins
bb4753acd4
ttx tests: convert to skipped tests on Win using pytest skipif fixture
2018-05-14 22:47:01 -04:00
Chris Simpkins
189e2487fe
ttx tests: exclude mocked exceptions on Windows platform testing
2018-05-14 20:32:37 -04:00
Chris Simpkins
3e7b33c22f
fix invalid path in ttx test
2018-05-14 17:15:28 -04:00