text: font: pango: fix width calculation off by one
authorDavid Herrmann <dh.herrmann@googlemail.com>
Fri, 7 Sep 2012 12:04:32 +0000 (14:04 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Fri, 7 Sep 2012 12:04:32 +0000 (14:04 +0200)
commit5da8d6297c066abfd1ab59f221d3547919a96e22
treec3bed120f23e5e5da5199f3c7ee1cc0a83b6e5ae
parent009d8aa1827b20511b9eaeb926eaa636f23885f7
text: font: pango: fix width calculation off by one

When using small glyphs, the pango text renderer used to cut off a pixel
of each glyph. This is due to incorrect rounding in width calculation. To
avoid this, we simply increase each glyph by 1 so it will always have
enough space for the whole data.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/text_font_pango.c