summaryrefslogtreecommitdiff
path: root/wasp
diff options
context:
space:
mode:
Diffstat (limited to 'wasp')
-rw-r--r--wasp/draw565.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wasp/draw565.py b/wasp/draw565.py
index f55977d..842b533 100644
--- a/wasp/draw565.py
+++ b/wasp/draw565.py
@@ -65,6 +65,9 @@ def _fill(mv, color: int, count: int, offset: int):
p[x] = color
def _bounding_box(s, font):
+ if not s:
+ return (0, font.height())
+
w = 0
for ch in s:
(_, h, wc) = font.get_ch(ch)