text: font: replace x/y offsets with baseline attribute

When rendering underlines we need the baseline attribute. Therefore,
replace the unused x/y offsets with a baseline attribute.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann committed 2012-07-30 17:42:21 +02:00
1 parent 48beed72f4
commit 36938b59d7
2 files changed
+2 -2

No files matched your search

+1 -2
View File
@@ -70,8 +70,6 @@ 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;
};
@@ -79,6 +77,7 @@ struct kmscon_font {
unsigned long ref;
const struct kmscon_font_ops *ops;
struct kmscon_font_attr attr;
unsigned int baseline;
void *data;
};
+1
View File
@@ -71,6 +71,7 @@ static int kmscon_font_8x16_init(struct kmscon_font *out,
out->attr.width = 8;
out->attr.height = 16;
kmscon_font_attr_normalize(&out->attr);
out->baseline = 4;
return 0;
}