font: set FT load and render flags from FontConfig properties

This commit is contained in:
Daniel Eklöf 2019-07-29 20:10:55 +02:00
parent fe882bddba
commit 4302d3eb68
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 129 additions and 21 deletions

View file

@ -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;