Miguel Sousa
3c29ff73a7
[cffLib.specializer_test] Tests for missing arguments
2017-05-08 15:49:47 -07:00
Miguel Sousa
1d3ac1add4
[cffLib.specializer_test] TODO
2017-05-08 15:49:39 -07:00
Behdad Esfahbod
30b804003e
[cffLib.specializer] Add programToString and stringToProgram from _test.py
2017-05-07 22:12:19 -06:00
Behdad Esfahbod
a8b841a4a9
[cffLib.specizalier_test] Add a few more tests
2017-05-07 22:04:17 -06:00
Behdad Esfahbod
041384a0e8
[cffLib.specializer_test] Add tests for peephole optimization
2017-05-07 13:08:41 -06:00
Miguel Sousa
2f14200a89
[cffLib.specializer_test] specializeProgram tests
...
The failing tests are due to missed optimization opportunities.
The current tests are not hitting some edge cases.
2017-05-07 03:14:24 -07:00
Miguel Sousa
2f7f36e2f4
[cffLib.specializer_test] charstring extras
2017-05-07 00:23:12 -07:00
Miguel Sousa
9617f5f26b
[cffLib.specializer_test] generalizeProgram tests
2017-05-06 22:57:37 -07:00
Miguel Sousa
2d02c54d1a
[t2CharStringPen_test] Update test results
2017-05-06 00:11:27 -07:00
Adrien Tétar
fbb9060311
Merge pull request #941 from adrientetar/warn-dupl-markclass
...
builder: throw when a mark is defined in multiple mark classes
2017-05-01 21:38:14 +02:00
Sascha Brawer
017fa4e9c6
[fvar] Expose flags in XML
...
Fixes https://github.com/fonttools/fonttools/issues/932 .
2017-05-02 00:51:44 +08:00
Adrien Tétar
3e3ff0051e
builder: throw when a mark is defined in multiple mark classes
...
(within the same lookup)
See #453 .
2017-05-01 13:14:38 +02:00
Cosimo Lupo
0690634eb1
[t2CharStringPen_test] add test for horizontal _relativeMoveTo (hmoveto)
2017-04-28 15:36:42 +01:00
Miguel Sousa
86b820ad0d
[t2CharStringPen] Update tests
2017-04-28 03:27:42 -07:00
Sascha Brawer
3f839878eb
[name] Fix issues with name.addMultilingualName()
...
Fixes https://github.com/fonttools/fonttools/issues/931 .
2017-04-21 13:14:24 +08:00
Sascha Brawer
a5c8977dd3
[name] Fix platform ID for names whose language code is in ltag
table
...
https://github.com/fonttools/fonttools/issues/931
2017-04-20 17:38:31 +08:00
Behdad Esfahbod
f056c124e5
[misc.classifyTools] Make classification order stable
...
Sets don't have a welldefined comparison function, so sort them...
Not the most efficient implementation, but good enough.
Fixes https://github.com/fonttools/fonttools/issues/927
2017-04-18 15:57:14 -07:00
Sascha Brawer
e8530360bd
[name] Add helper for building multi-lingual names
...
Fixes https://github.com/fonttools/fonttools/issues/921 .
2017-04-19 02:26:32 +08:00
Sascha Brawer
068ca5afbb
[ltag] Helper method for adding language tags
2017-04-18 18:15:32 +08:00
Cosimo Lupo
901b0c3a07
[_a_v_a_r_test] remove test_fixupSegments
...
e886617
2017-04-14 09:45:08 +01:00
Cosimo Lupo
3e70daa206
[basePen_test] add test for missing component skipped
2017-04-13 14:22:40 +01:00
Cosimo Lupo
78212239aa
[recordingPen_test] test recording component references as well as decomposed paths
2017-04-13 14:22:40 +01:00
Miguel Sousa
6241ff77ec
[varLib_test] no need for this test since axisMap parameter is no longer supported
...
test_varlib_build3_ttf() already covers the case of a .designspace without <axes> element
2017-04-13 00:58:23 -07:00
Behdad Esfahbod
968c25dd7f
[varLib] Generate avar table
...
Fixes https://github.com/fonttools/fonttools/issues/916
2017-04-12 21:54:43 -07:00
Behdad Esfahbod
0fa41c14b9
[varLib] Check all master and instance locations are valid
...
Ie. they don't specify any unknown axes, and location is within
axis minimum/maximum. We also allow master / instance locations
to not specify some axes, and we fill in the axis default for those.
2017-04-12 21:54:43 -07:00
Behdad Esfahbod
9034f4f3f1
[varLib] Rewrite axis configuration code
...
We do not accept nonstandard axes if <axes> element is not present.
Breaks one test. Needs updated expectations.
Soon we'll be generating avar as well and all will be better, much better.
2017-04-12 21:54:43 -07:00
Cosimo Lupo
3f7e095748
[varLib_test] add MVAR table to expected BuildMain.ttx
2017-04-12 12:27:32 +01:00
Cosimo Lupo
cca1d20b0e
[loggingTools] added LogMixin class
...
This is useful to quickly add logging functionality to classes, and
to reduce boilerplate.
It adds a 'log' property to the class inheriting from it, which uses
logging.getLogger to get a logging.Logger (sigleton) object named after
<module>.<class> of self.
2017-04-11 18:40:52 +01:00
Cosimo Lupo
fab26fd5c1
[loggingTools] rename 'match' to 'assertRegex'
...
https://github.com/fonttools/fonttools/pull/913#discussion_r110820088
https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertRegex
2017-04-11 09:34:39 +01:00
Cosimo Lupo
18bd3c6afe
[TSI1] add tests for decompile method
2017-04-10 20:53:10 +01:00
Cosimo Lupo
b26eeb2eb2
[TSI0] add tests for decompile, compile and toXML methods
2017-04-10 20:53:10 +01:00
Cosimo Lupo
7fe876a803
[minor] remove semicolons
2017-04-10 11:57:13 +01:00
Behdad Esfahbod
6881121827
Fix tests for recent changes
2017-04-05 15:50:24 +02:00
Behdad Esfahbod
fdbf066a8c
[glyf] Add __bool__ / __nonzero__ to GlyphCoordintes
...
I'm really unhappy that doctests do NOT work anymore :(.
2017-04-05 15:43:14 +02:00
Miguel Sousa
a60113dff6
[ttx] Remove FFIL test
...
It’s not worth the effort 1c2a531de2 (commitcomment-21516461)
2017-03-28 03:43:01 -07:00
Miguel Sousa
1a58912a60
[ttx] Tests
2017-03-28 03:43:01 -07:00
Behdad Esfahbod
a2b23811a2
Merge pull request #887 from fonttools/class-kern-merge
...
[varLib.merger] Fix interpolating PairPos Format 2
2017-03-16 16:03:34 -07:00
Miguel Sousa
6ba428eaf7
[varLib.interpolatable test] OTF example
2017-03-15 23:14:21 -07:00
Cosimo Lupo
af7ff9a8fd
fix "InterpolateLayoutGPOS_2_class_diff2.ttx" expected test result
...
6f41c2ab53 (commitcomment-21293526)
2017-03-13 17:20:28 +00:00
Miguel Sousa
6f41c2ab53
[varLib.interpolate_layout] Fix GPOS LookupType 2 class pairs test results
2017-03-13 06:51:54 -07:00
Miguel Sousa
0cc4ea85c6
[varLib.interpolate_layout] Tests for GPOS LookupType 2 class pairs
2017-03-13 06:51:54 -07:00
Cosimo Lupo
e6f39f855c
[tables_test] minor: fix docstrings
2017-03-13 11:28:39 +00:00
Cosimo Lupo
35b9efe648
[varLib.builder_test] added unit tests for buildVarData
...
b2825ff6b3 (commitcomment-21256990)
Note that the "Tests/varLib/__init__.py" file is necessary so that pytest can distinguish between same-named test modules (e.g. we have another "builder_test.py" file in Tests/feaLib).
2017-03-10 16:01:07 +00:00
Sascha Brawer
989270afc5
[AAT] Use ☃ instead of 🌍 to test non-ASCII characters
...
On some Python builds, Unicode characters above U+FFFF get escaped
to two question marks ?? instead of just one ?. This is not a real
problem, but for testing it is a nuisance when the results depend
on the platform.
2017-03-10 20:20:22 +08:00
Sascha Brawer
ea1adf42a7
[AAT] Add Char64 converter for 64-byte ASCII character strings
...
Used by Apple Advanced Typography tables, for example `gcid`.
https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6gcid.html
https://github.com/fonttools/fonttools/issues/178
2017-03-10 20:20:22 +08:00
Sascha Brawer
d7a298f36d
[otConverters] Add unit test for otConverters.UInt8
...
This class had been added in the `morx` branch, and I wanted
to merge it into master. While writing tests for it, I noticed
that `otConverters` has meanwhile been extended by an `UInt8`
converter. Therefore, only adding a test for the existing
implementation.
2017-03-09 20:52:26 +01:00
Sascha Brawer
910edb47df
[otConverters] Add unit test for otConverters.Long
...
I've got some changes in the `morx` branch which I'd like to merge
into master. So I'm writing this unit test as an example how to
test `otConverter` code.
2017-03-09 20:41:34 +01:00
Sascha Brawer
189c722626
[feaLib] Clean up syntax tree for FeatureNames
...
The syntax tree representation now reflects the syntax of feature files.
Before this change, FeatureNames did not have their own `ast.Block`,
which had made the code quite messy.
2017-03-10 02:48:32 +08:00
Sascha Brawer
4210c9d2d6
[feaLib] Clean up lexer test for handling comments
...
https://github.com/fonttools/fonttools/issues/829
2017-03-09 15:20:21 +01:00
Sascha Brawer
bc0670f53f
[feaLib] Simplify parser API by removing the ignore_comments
option
...
https://github.com/fonttools/fonttools/pull/879#discussion_r104947968
https://github.com/fonttools/fonttools/issues/829
2017-03-09 22:17:58 +08:00