Use integer character width (8px) instead of fractional (8.4px)

Integer pixel positions render more crisply and align better
with browser rendering.
This commit is contained in:
GitHub Copilot
2026-01-24 19:03:57 +00:00
parent ebb1104085
commit dede6b09bf
+1 -1
View File
@@ -48,7 +48,7 @@ FONT_FAMILY = (
)
FONT_SIZE = 14
LINE_HEIGHT = 1.2
CHAR_WIDTH = 8.4 # Approximate width of monospace character at 14px
CHAR_WIDTH = 8 # Width of monospace character at 14px (typically ~0.57 ratio)
class CharData(TypedDict):