summaryrefslogtreecommitdiff
path: root/scripts/run_general_tests.py
diff options
context:
space:
mode:
authorRoozbeh Pournader <roozbeh@google.com>2015-04-29 14:32:39 -0700
committerRoozbeh Pournader <roozbeh@google.com>2015-04-29 14:32:39 -0700
commita4ef18e29638cd1a0c814adb762177a342898eeb (patch)
tree0c31453445db8f8fa3f0884f16bb654c009a0270 /scripts/run_general_tests.py
parent0dfb011d31e906a53cffa1c3176628410086318d (diff)
Add tests for vertical metrics of individual glyphs.
The new tests check that every glyph fits in the [yMin, yMax] range. Also switch run_general_tests.py to test the hinted fonts instead of the unhinted fonts.
Diffstat (limited to 'scripts/run_general_tests.py')
-rwxr-xr-xscripts/run_general_tests.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/run_general_tests.py b/scripts/run_general_tests.py
index 1a9e965..68ca269 100755
--- a/scripts/run_general_tests.py
+++ b/scripts/run_general_tests.py
@@ -21,7 +21,7 @@ import unittest
import common_tests
FONTS = common_tests.load_fonts(
- ['out/RobotoTTF/*.ttf', 'out/RobotoCondensedTTF/*.ttf'],
+ ['hinted/*.ttf'],
expected_count=18)
class TestItalicAngle(common_tests.TestItalicAngle):
@@ -50,6 +50,11 @@ class TestFeatures(common_tests.TestFeatures):
loaded_fonts = FONTS
+class TestVerticalMetrics(common_tests.TestVerticalMetrics):
+ loaded_fonts = FONTS
+ test_ymin_ymax = None
+ test_hhea_table_metrics = None
+
if __name__ == '__main__':
unittest.main()