diff options
author | Roozbeh Pournader <roozbeh@google.com> | 2015-04-24 09:47:26 -0700 |
---|---|---|
committer | Roozbeh Pournader <roozbeh@google.com> | 2015-04-24 09:48:22 -0700 |
commit | ee1366b5f3c83348f13535a063216bf6854c49d9 (patch) | |
tree | cb252a2e8f393d3167571a2a77890301eae68731 /scripts | |
parent | 16032d5e0f1170a493e317f3c7fe6ff2c7f2e0d5 (diff) |
Look at actual shapes instead of advances.
The previous code was mistakenly looking at advances of glyphs,
instead of the glyphs themselves.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/run_exhaustive_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/run_exhaustive_tests.py b/scripts/run_exhaustive_tests.py index 5cda50c..1736cec 100755 --- a/scripts/run_exhaustive_tests.py +++ b/scripts/run_exhaustive_tests.py @@ -102,8 +102,8 @@ class TestSoftDottedChars(unittest.TestCase): print 'Testing %s combinations' % base_letter.encode('UTF-8') for mark in self.marks_to_test: mark = unichr(mark) - letter_only = layout.get_advances(base_letter, font) - combination = layout.get_advances(base_letter + mark, font) + letter_only = layout.get_shapes(base_letter, font) + combination = layout.get_shapes(base_letter + mark, font) self.assertNotEqual(combination[0], letter_only[0], "The sequence <%04X, %04X> doesn't lose its dot, " "but it should" % (ord(base_letter), ord(mark))) |