Skip to content

Commit

Permalink
png_to_font: Manual fixup for python2->3 conversion.
Browse files Browse the repository at this point in the history
Division now always return floats, had to change / into //.
  • Loading branch information
vogelchr committed Jan 4, 2017
1 parent 0233467 commit 5411713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion png_to_font.py
Expand Up @@ -51,7 +51,7 @@ def parse_char_range(s) :

for i,c in enumerate(parse_char_range(CP.get('font','chars'))) :
col = i % cells_per_row
row = i / cells_per_row
row = i // cells_per_row
# print >>sys.stderr,' #%d: Getting character 0x%02x from image at %d/%d.'%(i,c,col,row)

character_offset_arr.append( (c,len(pixel_data_arr)) )
Expand Down

0 comments on commit 5411713

Please sign in to comment.