Cosimo Lupo
5f8bb98107
[test.utils] add dummy pen and glyph classes to use with unit tests
2016-03-25 19:55:38 +01:00
Cosimo Lupo
2a6feb01be
[test] add __init__.py to turn 'test' into a sub-package
2016-03-25 19:55:38 +01:00
Cosimo Lupo
072a60da97
create test folder; add test .glif files
2016-03-25 19:55:38 +01:00
Cosimo Lupo
a246bcfdbd
[pens] add "super bezier" support to Cu2QuPointPen
2016-03-25 19:55:38 +01:00
Cosimo Lupo
8e3c6ce5a2
[pens] minor comments and assertion error message
2016-03-25 19:55:08 +01:00
Cosimo Lupo
c5bd215e2f
[pens] add assertions esuring that Cu2QuPen methods are called in the right order
2016-03-25 14:26:33 +01:00
Sascha Brawer
b62f525208
Merge pull request #557 from khaledhosny/fealib-os2
...
[feaLib] Support OS/2 table
2016-03-23 14:13:33 +01:00
Khaled Hosny
0a1f323835
[feaLib] Support OS/2 table
2016-03-23 15:42:00 +04:00
Khaled Hosny
fdcba0e130
[feaLib] Allow “/” in name tokens
...
For “OS/2” table.
2016-03-23 03:10:05 +04:00
Cosimo Lupo
7e553e9fee
Merge pull request #556 from anthrotype/feaLib-file-input
...
[feaLib] take in a path or a file-like object
2016-03-22 13:36:24 +00:00
Cosimo Lupo
9e8113718b
[feaLib.builder] decode features string using tounicode before passing it to StringIO (for python2)
2016-03-21 19:39:07 +00:00
Cosimo Lupo
bb937e35e6
[feaLib.parser_test] fix up tests after changes to featurefile arg
2016-03-21 18:55:38 +00:00
Cosimo Lupo
3affc725aa
[feaLib.lexer_test] fix up tests after changes to make_lexer_
2016-03-21 18:55:35 +00:00
Cosimo Lupo
0f8f71d5ec
[feaLib.lexer] modify make_lexer_ factory to take a 'file_or_path' argument
...
if 'file_or_path' is a file object keep it open, otherwise read the data from
the path and then close it.
2016-03-21 18:53:25 +00:00
Cosimo Lupo
6a05367a2c
[feaLib.parser] change argument name
2016-03-21 18:47:27 +00:00
Cosimo Lupo
06b9a808ad
[feaLib.builder] make addOpenTypeFeatures take only one 'featurefile' argument; add addOpenTypeFeaturesFromString
...
'featurefile' can be either a path (string) or a file object, like in TTFont or XMLReader and XMLWriter constructors.
If a file object does not have a 'name' attribute, a default "<features>" name is
used and the current working directory is assumed as the root for relative includes.
2016-03-21 18:46:50 +00:00
Behdad Esfahbod
2e816d6c2d
[symfont] Permissions
2016-03-21 10:12:26 -07:00
Behdad Esfahbod
40198a2dec
[gvar] Use array.array to decode deltas
2016-03-21 10:12:26 -07:00
Behdad Esfahbod
9987b7e14e
[gvar] Use array.array to decode deltas
2016-03-21 10:12:26 -07:00
Cosimo Lupo
83f074aac4
[feaLib] use shorter fea_path and fea_data kwargs in addOpenTypeFeatures
...
as discussed here: https://github.com/behdad/fonttools/pull/547/files#r56807232
2016-03-21 12:18:32 +00:00
Sascha Brawer
d268206fdd
Merge pull request #555 from anthrotype/fealib-ignore-names-1-6
...
[fealib] ignore nameIDs 1-6 in parser and issue a warning
2016-03-21 12:14:56 +01:00
justvanrossum
ad386ee477
Keep Format attribute for OT subtables. This value may be ignored by the compiler but is useful for debugging. Part of fixing #92 .
2016-03-21 12:12:05 +01:00
Cosimo Lupo
694b9d6917
[feaLib.parser_test] add test for ignored nameIDs 1-6
2016-03-21 11:02:03 +00:00
Cosimo Lupo
5efc85873b
[feaLib.parser] issue a warning and ignore 1 <= nameID <= 6 (like makeotf)
2016-03-21 11:01:33 +00:00
Just van Rossum
a11c8d610f
Merge pull request #554 from schriftgestalt/master
...
Disable optimisations when decompiling TrueType instructions
2016-03-21 07:47:52 +01:00
schriftgestalt
b09c5baa15
Disable optimisations when decompiling TrueType instructions
2016-03-20 22:26:22 +01:00
Cosimo Lupo
b2ac89cc42
[apply-feature-file.py] swap args position in addOpenTypeFeatures func call
...
this changed in commit 5e64857b975c842acadd0eba859c689a23c81b63
Fixes #553
2016-03-20 19:31:28 +00:00
Sascha Brawer
7eed24725f
Allow include statements not terminated by a semicolon
...
The lexer passes the semicolon to the parser, which will read over it.
Resolves https://github.com/behdad/fonttools/issues/552 .
2016-03-20 17:26:20 +01:00
Sascha Brawer
9ec04f0537
Merge pull request #547 from adrientetar/patch-2
...
feaLib: support string input
2016-03-20 09:09:06 -07:00
Adrien Tétar
492df7359b
feaLib: fix tests
2016-03-20 15:01:33 +01:00
Sascha Brawer
cf81e8adeb
Merge pull request #551 from khaledhosny/fealib-base
...
[feaLib] Support BASE table
2016-03-20 04:57:49 -07:00
Khaled Hosny
1ac37d7d00
[feaLib] Support BASE table
...
Just the parts documented a currently implemented by Adobe’s
implementation.
2016-03-20 13:36:02 +04:00
Cosimo Lupo
c3056bcae5
Merge pull request #550 from khaledhosny/fealib-featurename
...
[feaLib] Support stylistic set featureNames and size feature
2016-03-19 18:29:01 +00:00
Khaled Hosny
40be0e6f3a
[feaLib] Support size feature
2016-03-19 21:55:24 +04:00
Cosimo Lupo
a79ea7e126
[pens] set smooth=False for offcurve points in new quadratic segments
2016-03-18 15:41:44 +00:00
Cosimo Lupo
4f6d04bcf3
[pens] don't use super() for compat with robofab's old-style classes
2016-03-18 15:40:16 +00:00
Khaled Hosny
6e291cf705
[feaLib] Fix parsing float numbers
...
Numbers with integral parts >= 10 were incorrectly parsed as integers as
next_char always pointed to the second number not the decimal point.
2016-03-18 18:42:59 +04:00
Khaled Hosny
9feaab13aa
[feaLib] Support stylistic set featureNames
...
Does not handle featureNames for cvXX features, but it shouldn’t be hard
for someone to extend the code to support them if inclined to do so.
2016-03-18 14:08:00 +04:00
Khaled Hosny
53dc98be55
[feaLib] Fix parsing name records
...
Don’t override supplied encoding and language ids.
2016-03-18 14:06:33 +04:00
Adrien Tétar
0e2eeaf58b
Merge pull request #20 from anthrotype/repr-float
...
use repr() instead of str() to stringify floats
2016-03-17 19:50:55 +01:00
Cosimo Lupo
ace2a4a6bc
[glifLib] use use repr() to stringify floats for py23 compat
...
Closes #19
2016-03-17 16:06:03 +00:00
Cosimo Lupo
6dbca7fa38
[testSupport] use repr() to stringify floats for py23 compat
...
Part of fixing #19
2016-03-17 16:04:11 +00:00
Sascha Brawer
6a07beb699
Merge pull request #548 from mashabow/spec9e
...
[feaLib] Fix typo in testdata/spec9e.*
2016-03-16 17:48:27 -07:00
Masaya Nakamura
1adb1ad9e8
[feaLib] Fix typo in testdata/spec9e.*
...
Feature File Spec itself was fixed in https://github.com/adobe-type-tools/afdko/pull/110
2016-03-17 09:44:20 +09:00
Adrien Tétar
14e03b478b
Merge pull request #18 from benkiel/master
...
Updating robofab occurances in the text to ufoLib
2016-03-16 23:38:17 +01:00
Ben Kiel
cc16c7370c
Updating robofab occurances in the text to ufoLib
2016-03-16 14:24:16 -05:00
Cosimo Lupo
84f24b189b
[pens] fix imports for robofab pens
2016-03-16 18:58:06 +00:00
Cosimo Lupo
9fcca0f5c5
[pens] call lineTo if len(points) == 1 in qCurveTo()
...
we were alrady doing that in curveTo, so we might well do it here too
2016-03-16 10:39:06 +00:00
Cosimo Lupo
adaa9fc242
[pens] add docstrings; make ignore_single_points=False by default
2016-03-16 10:14:05 +00:00
Cosimo Lupo
a7ed9c8cc1
add pens module containing Cu2QuPen, Cu2QuPointPen, ReverseContourPen and ReverseContourPointPen
...
I copied the ReverseContourPointPen from the robofab.pens. I think it's useful for the Cu2QuPen to
have a `reverse_direction` argument which inverts the contours' winding direction. I didn't want to
add a dependency on robofab, since things are in transitions... We will add it to the future "penBox"
package (or whatever it'll be called) once that is set up.
2016-03-15 19:49:23 +00:00