text: font: add x/y offsets for glyphs
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 28 Jul 2012 14:37:22 +0000 (16:37 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 28 Jul 2012 14:37:22 +0000 (16:37 +0200)
A single glyph might be bigger/smaller than the other glyphs so allow them
to be positioned. As we are not interested in details like baselines, we
simply use an x/y offset.

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

index 906b897..70af5ae 100644 (file)
@@ -70,6 +70,8 @@ bool kmscon_font_attr_match(const struct kmscon_font_attr *a1,
 struct kmscon_glyph {
        unsigned int ascent;
        unsigned int descent;
+       unsigned int xoff;
+       unsigned int yoff;
        struct uterm_video_buffer buf;
 };