dont decode utf-8, use unicode literal
This commit is contained in:
parent
c2e0129438
commit
cd9f49b771
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue