From d93ca2f654e686c5b11e90a9e8198382443d65e9 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 16 Jul 2019 14:20:39 +0200 Subject: render: implement 'underline' --- terminal.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index bbc6c0ad..daec8667 100644 --- a/terminal.h +++ b/terminal.h @@ -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; -- cgit v1.3