aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/__main__.py b/src/__main__.py
index 6a296ec..7958804 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -154,7 +154,7 @@ class Bar:
@param text:str The text
@return :int The width of the text
'''
- return self.font.query_text_extents(text).overall_width
+ return self.font.query_text_extents(text.encode('utf8')).overall_width
def draw_text(self, x, y, descent, text, *, colour = None, clear = None):
'''