use unicode literal
This commit is contained in:
parent
7040fdd564
commit
523ae0fd51
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))
|
image = Image.new('RGB', (1, 1))
|
||||||
draw = ImageDraw.Draw(image)
|
draw = ImageDraw.Draw(image)
|
||||||
font = ImageFont.truetype(font_file, font_size, encoding='unic')
|
font = ImageFont.truetype(font_file, font_size, encoding='unic')
|
||||||
ellipsis = '…'.decode('utf-8')
|
ellipsis = u'…'
|
||||||
separators = ['-', '+', '/', ':']
|
separators = ['-', '+', '/', ':']
|
||||||
if get_width(text) <= max_width:
|
if get_width(text) <= max_width:
|
||||||
# text fits in one line
|
# text fits in one line
|
||||||
|
|
Loading…
Reference in a new issue