separate x and y logic for bdf placement

This commit is contained in:
Chuck
2025-07-23 13:30:54 -05:00
parent 64bb6129a8
commit 80e12a8599

View File

@@ -186,7 +186,9 @@ class OfTheDayManager:
byte = bitmap.buffer[byte_index]
# Check if the specific bit is set
if byte & (1 << (7 - (j % 8))):
draw.point((x + j, y + i), fill=color)
draw_y = y - face.glyph.bitmap_top + i
draw_x = x + face.glyph.bitmap_left + j
draw.point((draw_x, draw_y), fill=color)
except IndexError:
logger.warning(f"Index out of range for char '{char}' at position ({i}, {j})")
continue