We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b191075 commit 4e70781Copy full SHA for 4e70781
1 file changed
tools/gen_display_resources.py
@@ -75,8 +75,7 @@ def _load_row(self, y, row):
75
if missing > 0:
76
print("Font missing", missing, "characters", file=sys.stderr)
77
78
-x, y, dx, dy = f.get_bounding_box()
79
-tile_x, tile_y = x - dx, y - dy
+tile_x, tile_y, dx, dy = f.get_bounding_box()
80
total_bits = tile_x * len(all_characters)
81
total_bits += 32 - total_bits % 32
82
bytes_per_row = total_bits // 8
0 commit comments