Miguel Sousa
cc5d6c96fa
don't hardcode the table tags, rely on ttLib.getClassTag instead
2016-04-21 23:42:13 -07:00
Miguel Sousa
883ff5fbdc
[sbix] correct __init__ method
2016-04-21 21:32:30 -07:00
Behdad Esfahbod
e9ecd07baa
[mtiLib] Fix URL
2016-04-21 16:11:12 -07:00
Cosimo Lupo
d169acd10e
Merge pull request #584 from miguelsousa/svg_init_fix
...
[SVG] correct __init__ method
2016-04-21 10:46:49 +01:00
Miguel Sousa
ce4af2a0a2
[SVG] correct __init__ method
2016-04-20 17:08:45 -07:00
Sascha Brawer
fb6712f3ec
Merge pull request #582 from brawer/varLib
...
[varLib] Unit test for loading .designspace files
2016-04-19 02:44:12 +02:00
Behdad Esfahbod
8384c1e482
[varLib] Fix import
2016-04-18 16:48:13 -07:00
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
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
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
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
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
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
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
Cosimo Lupo
afd3f6618c
OS/2: 'global' is not needed
...
as no assignment is done, only append.
2016-04-10 23:13:59 +01:00
Cosimo Lupo
2526d85ad9
macUtils: fix undefined variable 'TTLibError'
2016-04-10 23:10:37 +01:00
Cosimo Lupo
54e6ab9478
mtiLib: add missing logging format string
2016-04-10 23:08:39 +01:00
Cosimo Lupo
2ac24ec27e
feaLib.ast: fix 'TypeError: not enough arguments for format string'
2016-04-10 23:06:35 +01:00
Cosimo Lupo
d2b58c4a86
textTools: add import sys
...
just to make my linter happy
2016-04-10 22:59:52 +01:00
Cosimo Lupo
e8c8bb75b1
xmlReader: must import sys
...
used at line 22 to read from stdin
2016-04-10 22:59:02 +01:00
Behdad Esfahbod
c6facc99df
When splitting a large class-kerning table, mark the old subtable as DontShare
...
Fixes https://github.com/behdad/fonttools/issues/537#issuecomment-196047070
2016-04-09 13:06:16 -07:00
Khaled Hosny
5ceaa43d27
[feaLib] Support hhea table
2016-04-09 18:02:40 +02:00
Behdad Esfahbod
a61b31a917
[subset] Mark avar and fvar tables as no-need-subsetting
2016-04-08 18:41:31 -07:00
Cosimo Lupo
09d2983fbb
[classifyTools] rename 'sorted' -> 'sort' to avoid confusions with the built-in name
2016-04-08 22:08:21 +01:00
Cosimo Lupo
020acf168b
[classifyTools] fixup tests after reverting commit 34d43aa
2016-04-08 21:59:05 +01:00
Cosimo Lupo
20320494de
Revert "[classifyTools] 'sorted' keyword argument should be boolean"
...
This reverts commit 34d43aa797c8b9e4ff42782bfdd7abde7711835d.
See 34d43aa797 (commitcomment-17012817)
2016-04-08 21:54:56 +01:00
Cosimo Lupo
1aa92de366
[classifyTools] must sub-class from 'object' to use new-style classes on py2
2016-04-07 12:09:28 +01:00
Cosimo Lupo
c9db89a851
[classifyTools] fix doctest failing on pypy
...
It seems like sets are hashed differently in CPython and PyPy.
Because of this, the returned list of class sets may have a different sort
order (within each class size) between the two implementations.
For now, I make the test pass on both CPython and PyPy by casting the returned
list of sets into a set of (frozen) sets, and asserting that its *content* is
correct, without considering the *order* of the sets in the list.
2016-04-07 11:54:53 +01:00