dont decode utf-8, use unicode literal

This commit is contained in:
j 2014-10-31 16:30:35 +01:00
parent c2e0129438
commit cd9f49b771

View file

@ -158,7 +158,7 @@ def wrapText(text, max_width, max_lines, font_file, font_size):
image = Image.new('RGB', (1, 1))
draw = ImageDraw.Draw(image)
font = ImageFont.truetype(font_file, font_size, encoding='unic')
ellipsis = ''.decode('utf-8')
ellipsis = u''
separators = ['-', '+', '/', ':']
if get_width(text) <= max_width:
# text fits in one line