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>
struct kmscon_glyph {
unsigned int ascent;
unsigned int descent;
- unsigned int xoff;
- unsigned int yoff;
struct uterm_video_buffer buf;
};
unsigned long ref;
const struct kmscon_font_ops *ops;
struct kmscon_font_attr attr;
+ unsigned int baseline;
void *data;
};
out->attr.width = 8;
out->attr.height = 16;
kmscon_font_attr_normalize(&out->attr);
+ out->baseline = 4;
return 0;
}