Remove extra glyph padding
This commit is contained in:
parent
b191075ab8
commit
4e70781c45
|
@ -75,8 +75,7 @@ for c in set(all_characters):
|
||||||
if missing > 0:
|
if missing > 0:
|
||||||
print("Font missing", missing, "characters", file=sys.stderr)
|
print("Font missing", missing, "characters", file=sys.stderr)
|
||||||
|
|
||||||
x, y, dx, dy = f.get_bounding_box()
|
tile_x, tile_y, dx, dy = f.get_bounding_box()
|
||||||
tile_x, tile_y = x - dx, y - dy
|
|
||||||
total_bits = tile_x * len(all_characters)
|
total_bits = tile_x * len(all_characters)
|
||||||
total_bits += 32 - total_bits % 32
|
total_bits += 32 - total_bits % 32
|
||||||
bytes_per_row = total_bits // 8
|
bytes_per_row = total_bits // 8
|
||||||
|
|
Loading…
Reference in New Issue