justvanrossum
7c319abbec
remove some unused variables; test empty cmap for format 4
2019-03-03 11:59:59 +01:00
justvanrossum
d4a2d935c4
[cmap] changed some uses of list(map(...)) to list comprehensions an explicit loops, avoiding possibly large unneeded tmp lists; replaced use of oval() with int(); adding tests to verify all changes are covered
2019-03-03 10:30:05 +01:00
Just van Rossum
6f7c0f1d09
[ttLib] cmap format 14 cleanup ( #1437 )
...
* cleanup cmap format 14 TTX format by removing redundant attributes
* don't output the name attr for a default mapping, instead of a glyph named 'None'
* still accept 'None' as an indicator glyph name, for bw compatibility
* swap order of TTX attrs uv and uvs
* make sure (unicode, glyphName) pairs are always tuples in uvsDict.
2019-01-10 19:19:35 +01:00
Just van Rossum
855378477f
[ttLib] adding a test for cmap format 14 (unicode variation sequences) ( #1436 )
...
Adding a test for cmap format 14 (unicode variation sequences), in preparation for #1435
2019-01-10 16:48:10 +01:00
justvanrossum
4e8295920a
return None if no unicode cmap subtables were found
2017-11-03 16:19:48 +01:00
justvanrossum
113f9cc498
add (0, 4) to default cmaps to search for; add getBestCmap() to TTFont as well; added test for the latter
2017-11-03 16:01:45 +01:00
justvanrossum
baf2fbf87d
added tests for cmap.getBestCmap()
2017-11-03 15:10:06 +01:00
Cosimo Lupo
e1d340cc65
[Tests] use absolute imports and add __init__.py where relevant
...
We can't use relative imports any more since the tests are now located outside the package.
I had to add __init__.py to Tests/feaLib/ so that pytest does not get confused by the presence
of two test files with the same basename: i.e. Tests/feaLib/builder_test.py and Tests/feaLib/builder_test.py
https://github.com/pytest-dev/pytest/issues/774
http://stackoverflow.com/questions/12582503/py-test-test-discovery-failure-when-tests-in-different-directories-are-called
2017-01-16 09:14:13 +00:00
Cosimo Lupo
78ad48eaf3
Move all *_test.py modules and test data to external Tests/ folder
2017-01-16 09:14:12 +00:00