summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRoozbeh Pournader <roozbeh@google.com>2015-04-24 09:50:11 -0700
committerRoozbeh Pournader <roozbeh@google.com>2015-04-24 09:50:11 -0700
commitc79cb0093a44b0f21d0c71319c028e3a308e1d35 (patch)
tree2b61df8ce30667f0badc860a9916e4ece686bdfd /scripts
parentee1366b5f3c83348f13535a063216bf6854c49d9 (diff)
Rename get_shapes to get_glyphs in layout.py.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/layout.py2
-rwxr-xr-xscripts/run_exhaustive_tests.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/layout.py b/scripts/layout.py
index dc85ed2..0568ea7 100644
--- a/scripts/layout.py
+++ b/scripts/layout.py
@@ -33,7 +33,7 @@ def get_advances(text, font):
return advances
_shape_cache = {}
-def get_shapes(text, font):
+def get_glyphs(text, font):
"""Get a list of shaped glyphs for text rendered in a font."""
try:
return _shape_cache[(text, font)]
diff --git a/scripts/run_exhaustive_tests.py b/scripts/run_exhaustive_tests.py
index 1736cec..e7425ad 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_shapes(base_letter, font)
- combination = layout.get_shapes(base_letter + mark, font)
+ letter_only = layout.get_glyphs(base_letter, font)
+ combination = layout.get_glyphs(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)))