Fix bold fonts not being used

This commit is contained in:
Kovid Goyal
2016-10-30 22:13:24 +05:30
parent 93872f8319
commit a00e7fbed8
2 changed files with 3 additions and 3 deletions

View File

@@ -138,7 +138,7 @@ class Sprites:
except KeyError:
pass
text, attrs = key
bold, italic = attrs & BOLD_MASK, attrs & ITALIC_MASK
bold, italic = bool(attrs & BOLD_MASK), bool(attrs & ITALIC_MASK)
first, second = render_cell(text, bold, italic)
self.first_cell_cache[key] = first = self.add_sprite(first)
if second is not None: