Miguel Sousa
274654d440
[varLib tests] Move test results to separate folder
2017-03-05 13:44:32 -08:00
Miguel Sousa
bfccdbb5d5
[varLib tests] Rename test files
2017-03-05 12:05:16 -08:00
Miguel Sousa
af3df891b2
[varLib.mutator] Drop all variable tables
2017-03-04 23:30:37 -08:00
Miguel Sousa
7f792cbaf8
[varLib.mutator] Add HVAR table to test result
2017-03-04 13:02:52 -08:00
Miguel Sousa
de6b436c14
[varLib mutator] Fix test result
2017-03-04 12:55:23 -08:00
Miguel Sousa
e01c52244d
[varLib.mutator] Test case and test result
2017-03-03 14:54:40 -08:00
Behdad Esfahbod
9d5e38c439
Merge pull request #869 from anthrotype/varLib-builder-fixes
...
[varLib.builder] Fix roundtripping XML
2017-03-03 11:31:38 -08:00
Cosimo Lupo
41035a4524
[interpolate_layout_test] add comment to clarify what the test is doing
2017-03-03 10:40:18 +00:00
Cosimo Lupo
f8349bab83
Merge pull request #871 from miguelsousa/more-varlib-tests
...
varLib.interpolate_layout test
2017-03-03 10:32:21 +00:00
Cosimo Lupo
8b3255111c
Merge pull request #867 from miguelsousa/hhea-fix
...
[tests] Change `hhea` and `vhea` table version from float to hex to mute fontTools warnings
2017-03-03 08:19:01 +00:00
Miguel Sousa
4eda174a2d
[varLib tests] ttx test sources, test case and test result
2017-03-02 23:09:13 -08:00
Miguel Sousa
ed46877a14
[varLib tests] another designspace and ufo test sources
...
This is a simpler designspace intended for testing the support of GSUB and GPOS merging.
2017-03-02 23:05:34 -08:00
Cosimo Lupo
9fbefd1d71
[test_tables] minor whitespace
2017-03-02 13:40:41 +00:00
Cosimo Lupo
9c6aaf0bf6
[test_tables] skip cmap tests when unicodedata2 is not installed
...
When the tests are run with `python setup.py test` (e.g. from the ./run-tests.sh
script), we can't have setuptools install pre-compiled wheels for extra test
requirements (e.g. Brotli, unicodedata2).
Instead of failing, it's better that we skip the tests that have such extra
requirements.
NOTE: The recommended way to run the full test suite is by using tox
(like we do on the CI), or by installing pytest and the rests of requirements.txt,
and then run `pytest` command directly.
2017-03-02 13:34:39 +00:00
Cosimo Lupo
0a9ab169fe
[test_tables] remove unused import
2017-03-02 13:30:12 +00:00
Cosimo Lupo
43bf2c4cb4
[aots/cmap4_font4.ttx.cmap] 0x37f is "GREEK CAPITAL LETTER YOT"
2017-03-02 13:29:06 +00:00
Cosimo Lupo
937bf40c11
[tables_test] dynamically parametrize tests using 'pytest_generate_tests'
...
pytest provides built-in support for implementing your custom dynamic
parametrization schemes:
http://doc.pytest.org/en/latest/parametrize.html#pytest-generate-tests
2017-03-02 10:57:26 +00:00
Cosimo Lupo
fca44b495c
[aots/data] rename OS2 -> OS_2 like in xml table tags; add sfntVersion where missing
2017-03-02 10:57:26 +00:00
Behdad Esfahbod
f652c405e3
[WIP] Add test fonts from AOTS and start of a driver, copied from mtiLib
2017-03-02 10:57:25 +00:00
Cosimo Lupo
57ed70d7b0
[varLib_test] compile binary varfont and check TTX dump doesn't change
2017-03-01 17:55:20 +00:00
Cosimo Lupo
0624d53a5b
[Tests] update varLib/data/BuildTest.ttx
...
The output of saveXML() immediately after running varLib.builder is now
the same as compiling/decompiling/dumping the font with ttx
https://github.com/fonttools/fonttools/pull/866#issuecomment-283397789
2017-03-01 17:31:31 +00:00
Miguel Sousa
6ccd7c83f0
File rename for consistency ( https://github.com/fonttools/fonttools/pull/866#issuecomment-283345103 )
2017-03-01 06:28:57 -08:00
Miguel Sousa
306882a00a
[tests] Change hhea
and vhea
table version from float to hex to mute fontTools warnings
2017-02-28 16:35:13 -08:00
Miguel Sousa
d1f717ca16
[varLib.build] Test case and test result
2017-02-28 12:15:51 -08:00
Miguel Sousa
67e1945690
[varLib.build] ttx test files.
...
These originated from TTFs that were built from the test UFO masters using fontmake v1.2.0 with the command `fontmake -m BuildTest.designspace -o variable`
2017-02-28 12:13:20 -08:00
Miguel Sousa
979e8657a6
[varLib.build] designspace and ufo test files
2017-02-28 08:46:27 -08:00
Miguel Sousa
951b53de4c
fix test after filename changes
2017-02-28 05:40:10 -08:00
Miguel Sousa
6f3be0b8f3
filename changes
2017-02-28 05:38:58 -08:00
Miguel Sousa
a1c6bc46f1
[designspace] Test for empty elements
2017-02-28 05:17:42 -08:00
Bo Song
b45fcf0fd6
Change gasp merge logic to 'first' ( #862 )
...
* change gasp merge logic to first
* fix typo
* add comment
* fix typo
2017-02-27 19:34:48 +00:00
Cosimo Lupo
ba44e64108
[designspace] rename 'masters' to 'sources', like in original .designspace document
...
I don't see why our parser should call this element differently than its official name.
2017-02-27 16:21:35 +00:00
Cosimo Lupo
ae58d3872c
Merge pull request #864 from miguelsousa/pr857-followup
...
Followup to PR #857
2017-02-26 16:44:18 +00:00
Miguel Sousa
f061231049
[varLib] Make designspace.load() return a dictionary instead of a tuple
2017-02-26 07:49:44 -08:00
Miguel Sousa
380a6cd56b
[varLib] Update designspace test case
2017-02-25 20:46:51 -08:00
Miguel Sousa
aed9caf964
[varLib] Add ‘axes’ element to designspace test file
2017-02-25 20:44:35 -08:00
Cosimo Lupo
01ed5a43e7
data/lookupflag.{fea,ttx}: add tests for duplicate glyphs in MarkAttachClass and MarkGlyphSets
2017-02-26 10:48:54 +08:00
Denis Moyogo Jacquerye
891405fd68
TupleVariation: round deltas before encoding ( #861 )
...
* TupleVariationTest.test_compileDeltaValues(): also test floats
* TupleVariation: round deltas before encoding
Python 3 was raising 'struct.error: required argument is not an integer' and Python 2 was truncating when deltas are floats
2017-02-24 08:58:41 -08:00
Cosimo Lupo
c2263c2e8f
[woff2_test] use bytes instead of unicode literals in struct format strings
...
This is for compatiblity with Python older than 2.7.7.
See https://bugs.python.org/issue19099
> Issue #19099 : The struct module now supports Unicode format strings.
https://hg.python.org/cpython/raw-file/f89216059edf/Misc/NEWS
2017-02-21 14:31:57 +00:00
justvanrossum
c5aa43238f
Make sure to load the 'head' table when recalculating the time stamp. Fixes #847 .
2017-02-21 13:45:50 +01:00
Cosimo Lupo
34fec90630
[subset_test] verify that --recal-timestamp actually works
...
Closes #847
2017-02-19 20:12:22 -08:00
Sascha Brawer
dc7bf89648
[feaLib] Test compiling zero values for SinglePos in vertical context
...
https://github.com/fonttools/fonttools/issues/633
2017-02-17 14:19:54 +01:00
Sascha Brawer
45c266441e
[feaLib] Add tests for zero values in contextual positioning
...
Specifically, contextual positioning statements with in-line single
positioning rules, in horizontal and in vertical contexts. For these
test cases, feaLib and makeotf produce the exact same output.
https://github.com/fonttools/fonttools/issues/633
2017-02-17 13:49:32 +01:00
Sascha Brawer
a2e7d96cf4
[feaLib] Merge SinglePos chain targets
...
Fixes https://github.com/fonttools/fonttools/issues/514 .
2017-02-17 12:49:12 +01:00
Sascha Brawer
fa69c64466
[feaLib] Add test case for class-based pair kerning with zero values
...
https://github.com/fonttools/fonttools/issues/633
2017-02-16 17:38:47 +01:00
Sascha Brawer
7c67e4a63d
[feaLib] Compile zero values to different formats based on context
...
If a zero value appears in a SinglePos statement, feaLib continues to
produce ValueRecords of format 0. But if a zero value appears in a
PairPos statement inside a horizontal compilation context, feaLib now
produces ValueRecords of format 4. Likewise, if a zero value appears
in a PairPos statement inside a vertical compilation context, feaLib
now produces ValueRecords of format 8.
The OpenType Feature Syntax specification is completely silent about this,
but the new behavior matches that of makeotf.
https://github.com/fonttools/fonttools/issues/633
2017-02-16 15:37:40 +01:00
Sascha Brawer
790c93d5cf
[feaLib] Test compilation of zero values in SinglePos statements
...
In context of SinglePos, makeotf compiles zero values to value records
of format 0. feaLib already does the same, but it's good to have tests
to make sure that this doesn't accidentally change.
https://github.com/fonttools/fonttools/issues/633
2017-02-16 13:59:53 +01:00
Sascha Brawer
40474f1aab
Distinguish value records format A from format B with zero values
...
Fixes https://github.com/fonttools/fonttools/issues/848 .
2017-02-16 13:53:55 +01:00
Masaya Nakamura
7ac8c32274
[Tests/subset] Add a test case for .notdef glyph width ( #845 )
2017-02-16 13:58:49 +09:00
Cosimo Lupo
f7a5d83cbb
[Tests/subset] make the test pass: we can now drop empty subroutines!
2017-02-15 01:19:12 -08:00
Cosimo Lupo
489db26da9
[Tests/subset] we still don't remove empty subroutines; adjust test data
2017-02-15 00:42:45 -08:00