render: implement 'underline'

This commit is contained in:
Daniel Eklöf 2019-07-16 14:20:39 +02:00
parent 441337645a
commit d93ca2f654
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 86 additions and 34 deletions

View file

@ -202,6 +202,14 @@ struct primary {
uint32_t serial;
};
struct font {
cairo_scaled_font_t *font;
struct {
double position;
double thickness;
} underline;
};
struct terminal {
pid_t slave;
int ptmx;
@ -258,7 +266,7 @@ struct terminal {
struct grid alt;
struct grid *grid;
cairo_scaled_font_t *fonts[4];
struct font fonts[4];
cairo_font_extents_t fextents;
struct wayland wl;