mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04:00
font: set FT load and render flags from FontConfig properties
This commit is contained in:
parent
fe882bddba
commit
4302d3eb68
4 changed files with 129 additions and 21 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue