Behdad Esfahbod
49b1c763a0
[test] Run "fonttools ttx" instead of "ttx"
6 years ago
Qunxin Liu
6faac8df83
[subset] Subsetting Name Table Step 4
...
Add unit test and integration test
6 years ago
Michiharu Ariza
e44b83aac0
replace test font SourceHanSans with its subet
6 years ago
Michiharu Ariza
a5e933eba0
Updated expected/cff-japanese fonts with retained FDs
6 years ago
Michiharu Ariza
9328354a83
separate CFF from TrueType in full font tests
6 years ago
Michiharu Ariza
ec30a8a9ac
removed unused test data
6 years ago
Michiharu Ariza
c12862657f
added desubroutinize & retain-gids full test cases with CFF fonts
...
and CFF retain-gids fixes
6 years ago
Garret Rieger
e6ffcc5904
[subset] Add expected files for retain-gids integration tests.
6 years ago
Garret Rieger
a903f9c228
[subset] Add some subsetting integration tests covering retain gids.
6 years ago
cclauss
26c5b54fb0
CircleCI: Test for Python 3 syntax errors and undefined names ( #1522 )
...
Catch missing imports and errors like #1520 and #1521
__E901,E999,F821,F822,F823__ are the "_showstopper_" [flake8](http://flake8.pycqa.org ) issues that can halt the runtime with a SyntaxError, NameError, etc. Most other flake8 issues are merely "style violations" -- useful for readability but they do not effect runtime safety.
* F821: undefined name `name`
* F822: undefined name `name` in `__all__`
* F823: local variable name referenced before assignment
* E901: SyntaxError or IndentationError
* E999: SyntaxError -- failed to compile a file into an Abstract Syntax Tree
6 years ago
Behdad Esfahbod
686e6f2e40
Fix automake warnings
...
[skip ci]
6 years ago
cclauss
b5c12b9f4d
print() is a function in Python 3 ( #1520 )
6 years ago
Michiharu Ariza
d8fadec098
added desubroutinize full font test profiles & expected fonts
...
modified subset_test_suite.py to apply desubroutinize profiles to CFF only (not to TT)
6 years ago
Behdad Esfahbod
cc126f2817
Minor
6 years ago
Michiharu Ariza
321e592333
Added desubroutinize option to generate-expected-outputs.py
...
Currently hb-subset always desubroutinizes CFF fonts.
Note that even with this option fonttools won't generate the expected subset CFF fonts. They were manually created & tweaked to match hb-subset output.
6 years ago
Michiharu Ariza
1377adc8a8
Added SourceHanSans-Regular for CFF subset test
...
Disabled FDSelect serialization to format 0 for compatibility with fonttools
6 years ago
Michiharu Ariza
bf4eb2e4cf
Added SourceSansPro-Regular along as CFF full-font test case
...
derived "expected" subset fonts from fonttools then manually tweaked further so they resemble hb-subset output
6 years ago
Ebrahim Byagowi
f57804a8a5
Resolve ttx absolute path before use ( #1075 )
6 years ago
Garret Rieger
b0d7971be0
[subset] Updated expected files for japanese subset integration tests to include cmap4.
7 years ago
Garret Rieger
7947927317
[subset] Update expected files for subset integration tests to include cmap4.
7 years ago
violet-sippial
93b03119da
[subset] Do not compare ttx progress output in the tests
...
Suppress progress messages of ttx. This avoids comparing this output to the reference file which lets the test fail.
7 years ago
Garret Rieger
535fb23c02
[subset] Add integration tests for cmap breakge.
7 years ago
Ebrahim Byagowi
cab2c2c08c
Make more gen-* scripts py3 compatible ( #940 )
7 years ago
Chun-wei Fan
eda6a5ea80
CMake: Fix running tests on Windows
...
For the API tests, output the test programs at $(TOP_BUILDDIR) so that
the freshly-built DLLs will be available for the test programs. For
those that are run through the Python wrapper scripts, use
${PYTHON_EXECUTABLE} instead of plain 'python' in case the Python
interpreter is not in the PATH.
7 years ago
Ebrahim Byagowi
9206762bbd
Make subset test runner compatible with py3
...
Fixes #873
7 years ago
Garret Rieger
8548fa1522
[subset] Drop cmap 12, platform 0 tables from Mplus1p expected files.
7 years ago
Garret Rieger
9b00b9a10d
[subset] Fix deadlock waiting for process output in subset test runner.
7 years ago
Garret Rieger
bfec28a7db
[subset] add some extra logging to subset run-tests.py.
7 years ago
Garret Rieger
c7d814eaa8
[subset] Add japanese font file to subset integration tests.
7 years ago
Garret Rieger
b4ba71ea7c
[subset] In subset integration test pass output through ots-sanitize if present.
7 years ago
Garret Rieger
904dd7beea
[subset] Add drop hinting profile to full-font.tests
7 years ago
Garret Rieger
70a1049b3f
[subset] Add a drop hints profile to basics.tests
7 years ago
Garret Rieger
5241d7f4b9
[subset] apply subset profiles (flags) to the subset integration tests.
7 years ago
Garret Rieger
a4aca190a9
[subset] add expected/full-font to dist files.
7 years ago
Garret Rieger
d31ace3274
[subset] Add subset integration tests using the full roboto font.
7 years ago
Garret Rieger
33f4381314
[subset] Add some more variations of the basic test.
7 years ago
Garret Rieger
e15e41ef12
[subset] Remove commented code from run-tests.py.
7 years ago
Garret Rieger
2b84480343
[subset] Update expected files for subsetting integration test to not include cmap 4.
7 years ago
Garret Rieger
a88504c601
[subset] Fix checksum clearning in subset test diff. Add an updated expected file (has cmap4 restored).
7 years ago
Garret Rieger
537698b601
[subset] Don't compare actual to itself in Fix test/subset/run-tests. Print a diff on failure.
7 years ago
Garret Rieger
04c1ec2b73
[subset] Don't fail on different checksum adjustment in subsetting tests.
7 years ago
Garret Rieger
b0eefacf4c
[subset] Drop GSUB, GDEF, GPOS, and DSIG from subsetter expected test outputs.
7 years ago
Behdad Esfahbod
41906cd5ef
[subset] Another fixup
...
I broke this in c31fcf4c58
7 years ago
Ebrahim Byagowi
ae6d0259b4
Install fonttools on two bots and enable cmake hb-subset test ( #777 )
7 years ago
Garret Rieger
3e81832432
Disable subset tests on cmake for now.
7 years ago
Garret Rieger
2f94105311
Disable subset tests on cmake for now.
7 years ago
Behdad Esfahbod
e081c9e8fc
Oops!
7 years ago
Behdad Esfahbod
1c49afe179
Whitespace
7 years ago
Garret Rieger
d4d120ad79
Skip subset to fonttools comparison test if TTX is not present.
7 years ago
Garret Rieger
29d915284e
Whitespace
7 years ago