This commit is contained in:
Kovid Goyal 2016-11-03 20:38:05 +05:30
parent 731c83eaf5
commit 91e6ae3658

View File

@ -95,7 +95,7 @@ def calc_cell_width(font, face):
ch = chr(i)
load_char(font, face, ch)
m = face.glyph.metrics
ans = max(ans, int(math.ceil(m.horiAdvance / 64)))
ans = max(ans, max(int(math.ceil(m.horiAdvance / 64)), face.glyph.bitmap.width))
return ans