aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-28 10:39:56 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-28 10:39:56 +0000
commitc399c329b67d1655cf6fa48a180f29c5019a7c88 (patch)
tree003eacd0dfe630451ad5dcfbd8f67e32a1d26f0b /terminal.h
parentrender: use FreeType face from font, instead of from cairo's scaled font (diff)
main: calculate *all* font metrics from the FreeType face
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/terminal.h b/terminal.h
index ed8adf0d..6c0b81f1 100644
--- a/terminal.h
+++ b/terminal.h
@@ -325,7 +325,13 @@ struct terminal {
struct grid *grid;
struct font fonts[4];
- cairo_font_extents_t fextents;
+ //cairo_font_extents_t fextents;
+ struct {
+ int height;
+ int descent;
+ int ascent;
+ int max_x_advance;
+ } fextents;
struct wayland wl;
struct {