text: font: correctly measure pango fonts

We need to actually increase the character count, otherwise, we will never
have a measurement set.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-07-31 16:44:28 +02:00
parent 65424fa304
commit 1ef98f6ee4

View File

@ -360,6 +360,7 @@ static int kmscon_font_pango_init(struct kmscon_font *out,
desc = glyph->descent;
if (glyph->buf.width > width)
width = glyph->buf.width;
++num;
}
if (!num) {