From 92319d1570e712e3df23f9f623f17dc6e19b0c2a Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 10 Aug 2019 20:34:22 +0200 Subject: font: initial support for fontconfig font fallback When we've exhausted our own fallback list, try the font list provided by fontconfig. This means, the user's fallback fonts have priority, but in case all of them fail, we hopefully get lucky with fontconfig... --- font.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'font.h') diff --git a/font.h b/font.h index 90a4b1dd..1450f5f9 100644 --- a/font.h +++ b/font.h @@ -6,6 +6,7 @@ #include #include FT_FREETYPE_H #include FT_LCD_FILTER_H +#include #include #include "tllist.h" @@ -28,6 +29,10 @@ struct glyph { typedef tll(struct glyph) hash_entry_t; struct font { + FcPattern *fc_pattern; + FcFontSet *fc_fonts; + int fc_idx; + FT_Face face; int load_flags; int render_flags; -- cgit v1.3