From 541171355d4a68f2b10ae008c0d691c05030d198 Mon Sep 17 00:00:00 2001 From: Christian Vogel Date: Wed, 4 Jan 2017 19:57:38 +0100 Subject: [PATCH] png_to_font: Manual fixup for python2->3 conversion. Division now always return floats, had to change / into //. --- png_to_font.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/png_to_font.py b/png_to_font.py index fb92f31..9d88c31 100755 --- a/png_to_font.py +++ b/png_to_font.py @@ -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)) )