2698 Commits

Author SHA1 Message Date
Sascha Brawer
2664773032 [varLib] Unit test for loading .designspace files 2016-04-18 12:12:45 +02:00
Cosimo Lupo
b149bd51db Merge pull request #579 from anthrotype/fealib-newline-in-string
fealib: allow newlines in string literals (and skip over them)
2016-04-18 09:39:53 +01:00
Cosimo Lupo
47039f709b feaLib.lexer_test: add test for newlines in string token 2016-04-17 22:21:40 +01:00
Cosimo Lupo
cd8457f091 feaLib.lexer: strip newlines embedded within a string
Fixes #578
2016-04-17 22:21:24 +01:00
Behdad Esfahbod
2312880d79 [varLib] Assert that we found the base master 2016-04-17 11:53:20 -07:00
Behdad Esfahbod
f7bfaff29c Merge branch 'varLib' 2016-04-15 13:57:12 -07:00
Behdad Esfahbod
5f953db5ee [varLib] Document module a bit 2016-04-15 13:56:37 -07:00
Behdad Esfahbod
fe7f99de16 [varLib] Simplify things a bit
This seems to be created correct fonts now.
2016-04-15 13:49:27 -07:00
Behdad Esfahbod
908d1dac47 [varLib] use operator.iadd instead of operator.add
Reduces copying.
2016-04-15 09:00:57 -07:00
Cosimo Lupo
edb9c721ae travis: get pyenv from upstream repo
Jython 2.7.1b3 can now be downloaded from the official yyuu/pyenv repository.

https://github.com/yyuu/pyenv/pull/577
2016-04-15 16:56:13 +01:00
Behdad Esfahbod
fd238eb2ae [varLib] Build GX variation font using all masters
Needs some fixing, but the basics are there.
2016-04-15 08:56:04 -07:00
Sascha Brawer
910166be11 Merge pull request #576 from anthrotype/jython
add jython support for Travis CI (still experimental)
2016-04-15 12:09:12 +02:00
Cosimo Lupo
834150b316 travis: only install pytest and don't run jython inside virtualenv
https://travis-ci.org/anthrotype/fonttools/jobs/123273641

When I do `pip install -r dev-requirements.txt` from within a virtual env,
jython sits for 3-4 minutes doing nothing, then the Travis shell exits with this cryptic error:

/usr/bin/env: python2.7: Argument list too long
2016-04-15 10:19:23 +01:00
Cosimo Lupo
a1c962dd2e travis: use pyenv fork to download latest jython beta that fixes pip issues
We shall roll back to the upstreaam pyenv once the PR https://github.com/yyuu/pyenv/pull/577 is merged
2016-04-15 10:19:22 +01:00
Cosimo Lupo
af35faeb2f travis: just call py.test in jython, as tox doesn't work; ignore test failures for now 2016-04-15 10:19:22 +01:00
Cosimo Lupo
0549eb0d57 travis: try using jython 2.7.1b2; don't install from requirements.txt on Jython to avoid RuntimeError
I don't know why but when I `pip install -r requirements.txt` on Jython,
it always raises a Java StackOverflowError.
If I install the deps individually, it works...

$ pip install -v -r dev-requirements.txt
Exception:
Traceback (most recent call last):
  File "fonttools-jy271b2/Lib/site-packages/pip/basecommand.py", line 209, in main
    status = self.run(options, args)
  File "fonttools-jy271b2/Lib/site-packages/pip/commands/install.py", line 285, in run
    self.populate_requirement_set(
  File "fonttools-jy271b2/Lib/site-packages/pip/basecommand.py", line 286, in populate_requirement_set
    for req in parse_requirements(
  File "fonttools-jy271b2/Lib/site-packages/pip/req/req_file.py", line 89, in parse_requirements
    for line_number, line in lines_enum:
  File "fonttools-jy271b2/Lib/site-packages/pip/req/req_file.py", line 323, in ignore_comments
    for line_number, line in lines_enum:
  File "fonttools-jy271b2/Lib/site-packages/pip/req/req_file.py", line 298, in join_lines
    if COMMENT_RE.match(line):
RuntimeError: maximum recursion depth exceeded (Java StackOverflowError)
2016-04-15 10:19:22 +01:00
Cosimo Lupo
d487c9be8c Revert "tox: add jython to env list"
This reverts commit 8b49162f0be3acf088c3e01d9db642d39a75572d.
2016-04-15 10:19:22 +01:00
Cosimo Lupo
446f7f88b1 tox: add jython to env list 2016-04-15 10:19:22 +01:00
Cosimo Lupo
f8b309a28d travis: use pyenv to install Jython 2.7.0 2016-04-15 10:19:22 +01:00
Behdad Esfahbod
99f97e13a3 [varLib] Clean up 2016-04-14 23:55:11 -07:00
Behdad Esfahbod
29bc9ea42e [varLib] Generate rudimentary GX variation font
To be improved.
2016-04-14 23:40:10 -07:00
Behdad Esfahbod
7625e25c0d [varLib] Parse .designspace documents 2016-04-14 15:54:06 -07:00
Behdad Esfahbod
ca4acf0fd0 [varLib] Move sample to doctest 2016-04-13 23:53:29 -07:00
Behdad Esfahbod
cc2fb5a400 [varLib] Rename MutatorModel to VariationModel 2016-04-13 23:46:12 -07:00
Behdad Esfahbod
0ee799fb03 [glyf] Add math operators to GlyphCoordinates 2016-04-13 22:54:39 -07:00
Behdad Esfahbod
0d0509a312 [varLib] Rename offsets to deltaWeights
Also negate the weights and add the current master's weight
as well (+1).
2016-04-13 16:44:59 -07:00
Behdad Esfahbod
cbda46c530 [varLib] Generate master offsets
TO be documented / renamed.  This is the contribution of other
masters, at each masters' location.
2016-04-13 16:37:16 -07:00
Behdad Esfahbod
ef4aa7e7f0 [varLib] Shuffle 2016-04-13 16:35:41 -07:00
Behdad Esfahbod
c16086afaa [varLib] Add MutatorModel
Computes the master supports pyramids already.
2016-04-13 16:35:41 -07:00
Behdad Esfahbod
9a604599a4 [varLib] Return axisPoints with sort key func 2016-04-13 16:35:41 -07:00
Behdad Esfahbod
458ebbf9d5 Start varLib, for gvar-style font variations
Right now, just reinventing some concepts form MutatorMath.objects
in a more compact (and more correct?) way.
2016-04-13 16:35:41 -07:00
Behdad Esfahbod
c4fe9c7c57 Before splitting subtables when overflow happens, try disabling table sharing
More bandaid for https://github.com/behdad/fonttools/issues/537
2016-04-13 16:34:14 -07:00
Behdad Esfahbod
4268e6345d Fix splitPairPos for TTFont loaded from XML
When loading from XML count variables are missing...

Fixes https://github.com/behdad/fonttools/issues/537#issuecomment-207849194
2016-04-13 16:17:05 -07:00
Behdad Esfahbod
68500cbfe8 [gitignore] Ignore jython bytecode 2016-04-13 13:20:09 -07:00
Sascha Brawer
7cc829d91d Merge pull request #573 from miguelsousa/svg-colorPalettes-fix
[SVG] Better handling of empty <colorPalettes> element
2016-04-13 13:21:40 +02:00
Miguel Sousa
b9fc0b84ed [SVG] Don't make <colorPalettes> element a requirement 2016-04-13 03:32:07 -07:00
Miguel Sousa
30c89b8a2f [SVG] Don't write <colorPalettes> element if it's empty 2016-04-13 03:31:01 -07:00
Miguel Sousa
ff06131e47 [SVG] Better handling of empty <colorPalettes> element 2016-04-13 02:28:20 -07:00
Sascha Brawer
967cf8bb15 Sort feature records by feature tag
Resolves https://github.com/behdad/fonttools/issues/568
2016-04-12 13:53:25 +02:00
justvanrossum
af5bd42479 ignore OSX Finder private data 2016-04-12 07:22:15 +02:00
Cosimo Lupo
dc2f95d3ef .gitignore: ignore cache files and add some comments
@brawer maybe the emacs backup files could go to your .git/info/exclude list?
This is what I do with my '.DS_Store' friends on my mac.
2016-04-11 11:32:25 +01:00
Behdad Esfahbod
24820064ff Merge pull request #571 from anthrotype/coverage
run coverage.py on Travis and upload report to coveralls
2016-04-10 18:48:50 -07:00
Cosimo Lupo
893d5d795a travis/run.sh: simplify 2016-04-11 02:20:19 +01:00
Cosimo Lupo
573cf4c266 travis/install.sh: don't use brew to install pyenv on OS X as it's too slow; just clone from git like in Linux 2016-04-11 02:19:44 +01:00
Behdad Esfahbod
d82401bb8d Fix SVG version-1 decompile
Untested.  We should add tests for these.
2016-04-10 17:20:10 -07:00
Cosimo Lupo
215ab5bec3 travis.yml: add 'coveralls' tox environment to the matrix (use py35 on Linux) 2016-04-11 01:11:01 +01:00
Cosimo Lupo
624fe3f625 tox.ini: configure coveralls 2016-04-11 01:11:01 +01:00
Cosimo Lupo
a37dc9f186 tox.ini: use {envpython} substituion for path to the virtual Python interpreter 2016-04-11 01:11:01 +01:00
Cosimo Lupo
d187a7ea44 .coveragerc: add configuration file for coverage.py 2016-04-11 00:15:07 +01:00
Cosimo Lupo
75ec34f8ab SVG: decompileEntryList method takes only one argument
I haven't tested if this works (but for sure it wasn't working before either)
2016-04-10 23:23:25 +01:00