3619 Commits

Author SHA1 Message Date
Cosimo Lupo
7e1f56a645
[data/expect_keep_colr.ttx] adjust expected data in SubsetTest.test_subset_clr 2017-01-24 14:35:55 +00:00
Cosimo Lupo
12b8e9284e
[data/ttProgram.ttx] add newline at the end of XML file to match b83b358 2017-01-24 14:35:55 +00:00
Cosimo Lupo
f9071139b1
[ttProgram] don't write empty <assembly> or <bytecode> elements
That means that, when reading from XML, we fallback to empty lists in case 'assembly' or 'bytecode' attrs are not there.
2017-01-24 14:35:46 +00:00
Cosimo Lupo
499bc960f9
[_g_l_y_f/ttProgram] Move writer.newline() to Program.toXML() 2017-01-24 14:35:46 +00:00
Jens Kutilek
828a58aacb Better fix for checking line endings, use UnicodeIO instead of BytesIO 2017-01-24 15:30:32 +01:00
Jens Kutilek
c9bdda2bc3 Ignore line endings 2017-01-24 14:05:18 +01:00
Jens Kutilek
15b2f465b9 Add test for assembly indentation 2017-01-24 13:50:24 +01:00
Jens Kutilek
337dd1d94a Fix tests for indentation changes 2017-01-24 13:20:27 +01:00
Jens Kutilek
bbc9f63627 Use indentation amount from XMLWriter.indentwhite 2017-01-24 13:07:20 +01:00
Jens Kutilek
07e4f242b8 Fix linebreaks/indentation in instruction element 2017-01-24 13:05:58 +01:00
Jens Kutilek
bec499ac05 Indent XML output for TT assembly instructions
Indentation for TTX XMLF is 2 spaces. I chose 4 spaces for indentation of instructions to make it more noticeable. I hope it’s not a problem, because assembly code lines are usually very short.
2017-01-23 16:10:48 +01:00
Cosimo Lupo
3ec651ee22
[setup.py] in long_description, add 'Changelog' header to separate README.rst from NEWS.rst 2017-01-20 09:39:18 +00:00
Cosimo Lupo
5d6995d317
[Snippets/interpolatable] scipy returns numpy arrays; convert them back to list 2017-01-19 15:39:48 +00:00
Behdad Esfahbod
179b8b5794 [Snippets/interpolatable] Use Hungarian algorithm from munkres or scipy when available
Fixes https://github.com/fonttools/fonttools/issues/815
2017-01-19 07:21:08 -08:00
Cosimo Lupo
a141ddc400 Merge pull request #813 from anthrotype/readme-rst
convert README to reStructuredText for use with PyPI
2017-01-19 09:24:39 +00:00
Behdad Esfahbod
1631c5c941 [varLib.interpolate_layout] Implement flattening of multiple PairPosFormat1 subtables
Also fixes issues with merging of PairPos.

Trying on Noto Sans Thai still fails, now because of issues in class differences in
PairPosFormat2. :(  Investigating.

This is part of fixing https://github.com/fonttools/fonttools/issues/719
though, the changes are currently in interpolate_layout, and need to be ported /
merged with varLib.__init__ variation-font-builder.
2017-01-18 18:42:45 -08:00
Behdad Esfahbod
d38ecf02ec [varLib] Minor 2017-01-18 18:42:45 -08:00
Cosimo Lupo
c9c7f0e151
[MANIFEST.in] add *.rst extension to README and NEWS 2017-01-18 19:02:01 +00:00
Cosimo Lupo
7aaab4dff7
[setup.py] display README and NEWS on PyPI page; parse/update NEWS.rst in 'release' command 2017-01-18 18:59:55 +00:00
Cosimo Lupo
e83383113f
[NEWS] convert changelog to reStructuredText so we can publish on PyPI page 2017-01-18 18:40:54 +00:00
Cosimo Lupo
9d1f01899b
[NEWS] make changelog headers more consistent and machine-parseable 2017-01-18 18:40:50 +00:00
Cosimo Lupo
91644142e2
[MetaTools] change builtTableList.py to use README.rst instead of *.md 2017-01-18 16:16:54 +00:00
Cosimo Lupo
025137c3ac
[README.rst] fix the table list 2017-01-18 16:16:37 +00:00
Cosimo Lupo
91ab4a4e50
[README] convert from Markdown to reStructuredText so we can use it on both PyPI and Github
I converted it automatically with pandoc:

$ pandoc --from=markdown --to=rst --output README.rst README.md
2017-01-18 15:59:51 +00:00
Cosimo Lupo
cef9b8174d
Update changelog 2017-01-18 12:37:16 +00:00
Cosimo Lupo
63f5253ec7
[ttLib] don't close stdout in TTFont.saveXML()
otherwise when dumping multiple TTX to standard output it raises:

ValueError: I/O operation on closed file
2017-01-18 12:06:46 +00:00
Cosimo Lupo
ff247f9be4
[ttx] fix typo in --help 2017-01-18 12:01:32 +00:00
Cosimo Lupo
223c39f77e
[tox] also run pytest --pyargs fontTools for embedded doctests 2017-01-17 22:14:16 +00:00
Cosimo Lupo
084ee0750a
[subset_test] invert arguments order in difflib.unified_diff; remove unused variable 2017-01-17 17:39:41 +00:00
Cosimo Lupo
89b688cecf Merge pull request #811 from anthrotype/external-tests
move tests to external "Tests/" folder
2017-01-17 15:27:31 +00:00
Cosimo Lupo
98013fe526
[loggingTools_test] don't assert exact clock times
Windows timer can be imprecise:
https://ci.appveyor.com/project/fonttools/fonttools/build/1.0.419/job/vlpd9qv07384w5sl
2017-01-17 14:12:14 +00:00
Cosimo Lupo
a79bb0fa01
[Tests] convert varLib/models.py doctests into models_test.py 2017-01-17 13:39:38 +00:00
Cosimo Lupo
adaf708ae0
[Tests] convert ttProgram doctests into ttProgram_test.py 2017-01-17 13:39:37 +00:00
Cosimo Lupo
4ef3f1dd42
[Tests] convert GlyphCoordinates doctests into _g_l_y_f_test.py 2017-01-17 13:39:37 +00:00
Cosimo Lupo
a2066c9fbe
[Tests] convert _f_p_g_m doctests into _f_p_g_m_test.py 2017-01-17 13:39:37 +00:00
Cosimo Lupo
ad6e8e606c
[Tests] covert O_S_2f_2 doctests to unittest and moved to O_S_2f_2_test.py 2017-01-17 13:39:37 +00:00
Cosimo Lupo
ae6059e234
[Tests] covert woff2 doctests to unittest and moved to woff2_test.py 2017-01-17 13:39:36 +00:00
Cosimo Lupo
8fe1a874ff
[Tests] covert sfnt doctests into sfnt_test.py 2017-01-17 13:39:36 +00:00
Cosimo Lupo
cf5807bb94
[Tests] covert transform doctests into transform_test.py 2017-01-17 13:39:36 +00:00
Cosimo Lupo
99a9cb901a
[Tests] covert timeTools doctests into timeTools_test.py 2017-01-17 13:39:36 +00:00
Cosimo Lupo
34474743f5
[Tests] covert textTools doctests into textTools_test.py 2017-01-17 13:39:36 +00:00
Cosimo Lupo
7a62f04adf
[Tests] covert py23 doctests to unittest and add to py23_test.py 2017-01-17 13:39:35 +00:00
Cosimo Lupo
29141af3a9
[Tests] convert loggingTools doctests into loggingTools.py 2017-01-17 13:39:35 +00:00
Cosimo Lupo
8b0130ccb3
[Tests] convert eexec doctests into eexec_test.py 2017-01-17 13:39:35 +00:00
Cosimo Lupo
f22722ae51
[Tests] convert classifyTools doctests into bezierTools_test.py 2017-01-17 13:39:35 +00:00
Cosimo Lupo
3e23cc7bd6
[Tests] convert bezierTools doctests into bezierTools_test.py 2017-01-17 13:39:34 +00:00
Cosimo Lupo
4973060af0
[Tests] convert arrayTools doctests into arrayTools_test.py 2017-01-17 13:39:34 +00:00
Cosimo Lupo
e634005bd9
[arrayTools] no need to cast round(v) to int()
as we are using python3 round
2017-01-17 13:39:34 +00:00
Cosimo Lupo
1044eaf15b
README.md: update test instructions 2017-01-17 13:39:34 +00:00
Cosimo Lupo
8aa9f15ad5
require pytest>=3.0 in setup.py's setup_requires and setup.cfg 2017-01-17 13:33:47 +00:00