Skip to content

Commit 4e70781

Browse files
committed
Remove extra glyph padding
1 parent b191075 commit 4e70781

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/gen_display_resources.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ def _load_row(self, y, row):
7575
if missing > 0:
7676
print("Font missing", missing, "characters", file=sys.stderr)
7777

78-
x, y, dx, dy = f.get_bounding_box()
79-
tile_x, tile_y = x - dx, y - dy
78+
tile_x, tile_y, dx, dy = f.get_bounding_box()
8079
total_bits = tile_x * len(all_characters)
8180
total_bits += 32 - total_bits % 32
8281
bytes_per_row = total_bits // 8

0 commit comments

Comments
 (0)