diff options
| -rw-r--r-- | wasp/draw565.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/wasp/draw565.py b/wasp/draw565.py index 37e96b5..884d1a8 100644 --- a/wasp/draw565.py +++ b/wasp/draw565.py @@ -74,10 +74,11 @@ def _bounding_box(s, font): if not s: return (0, font.height()) - w = 0 + get_ch = font.get_ch + w = len(s) - 1 for ch in s: - (_, h, wc) = font.get_ch(ch) - w += wc + 1 + (_, h, wc) = get_ch(ch) + w += wc return (w, h) |
