Skip to content

Commit b7ad5fb

Browse files
committed
Fix int() type for latest python
As per http://typedrawers.com/discussion/632/problems-with-fontqa
1 parent 46f37bd commit b7ad5fb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

FontLab/Macros/System/Modules/fontQA_Hints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def _testFont(self, TheFont):
9999
if result == None:
100100
result = []
101101
myBBox = trueBBox(anyGlyph)
102-
myRange = xrange(myBBox.ll.y, myBBox.ur.y + 1)
102+
myRange = xrange(int(myBBox.ll.y), int(myBBox.ur.y + 1))
103103
for anyHHint in anyGlyph.hhints:
104104
if anyHHint.position not in myRange or anyHHint.position + anyHHint.width not in myRange:
105105
result.append('%s: (p=%s, w=%s)' % (anyGlyph.name, anyHHint.position, anyHHint.width))
@@ -124,7 +124,7 @@ def _testFont(self, TheFont):
124124
if result == None:
125125
result = []
126126
myBBox = trueBBox(anyGlyph)
127-
myRange = xrange(myBBox.ll.x, myBBox.ur.x + 1)
127+
myRange = xrange(int(myBBox.ll.x), int(myBBox.ur.x + 1))
128128
for anyVHint in anyGlyph.vhints:
129129
if anyVHint.position not in myRange or anyVHint.position + anyVHint.width not in myRange:
130130
result.append('%s: (p=%s, w=%s)' % (anyGlyph.name, anyVHint.position, anyVHint.width))

0 commit comments

Comments
 (0)