Browse Source

tools/fontgen: fix Python 3 compatibility

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Gerard Marull-Paretas 2 months ago
parent
commit
6a49a2df69
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/font/fontgen.py

+ 1 - 1
tools/font/fontgen.py

@@ -238,7 +238,7 @@ class Font:
         src_ptr = self.max_glyph_size - len(glyph_packed)
 
         def glyph_packed_iterator(tbl, num):
-            for i in xrange(0, num):
+            for i in range(0, num):
                 yield struct.unpack('<B', tbl[i])[0]
 
         # Generate glyph buffer. Ignore the header