fix markup positioning incase of glyphs with kerning

This commit is contained in:
Qua-non 2012-03-18 19:35:58 +05:30
parent 2ebe07e9a9
commit d11c77aca5
1 changed files with 2 additions and 1 deletions

View File

@ -228,7 +228,8 @@ class MarkupLabel(MarkupLabelBase):
# (extract all extents of the part,
# sum the width, and get the maximum height)
pg = [cache[g] for g in part]
pw = sum([g[0] for g in pg])
#pw = sum([g[0] for g in pg])
pw = get_extents(part)[0]
ph = max([g[1] for g in pg])
options = copy(options)