From 4302d3eb680e1bd88724b8d67a6659f44bcdf789 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 29 Jul 2019 20:10:55 +0200 Subject: font: set FT load and render flags from FontConfig properties --- terminal.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 89f3dc39..86b92d17 100644 --- a/terminal.h +++ b/terminal.h @@ -215,6 +215,9 @@ struct glyph { struct font { FT_Face face; + int load_flags; + int render_flags; + FT_LcdFilter lcd_filter; struct { double position; double thickness; @@ -225,6 +228,7 @@ struct font { } strikeout; struct glyph cache[256]; + mtx_t lock; }; enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR }; @@ -326,7 +330,6 @@ struct terminal { struct grid *grid; struct font fonts[4]; - //cairo_font_extents_t fextents; struct { int height; int descent; -- cgit v1.3