Remove extra glyph padding

This commit is contained in:
Scott Shawcroft 2022-06-13 09:21:41 -07:00
parent b191075ab8
commit 4e70781c45
No known key found for this signature in database
GPG Key ID: 9349BC7E64B1921E
1 changed files with 1 additions and 2 deletions

View File

@ -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