aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-28 10:09:22 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-28 10:09:22 +0000
commitcb02c9cf416815c5d55254d3c81647b28ca0aa47 (patch)
tree8ae0eafee7802438b8a60199f55f167df19349b4 /terminal.h
parentrender: poc: use freetype to render glyphs (diff)
font: load FreeType face, and set it's pixel sizes
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 1971d3f4..ed8adf0d 100644
--- a/terminal.h
+++ b/terminal.h
@@ -6,6 +6,9 @@
#include <threads.h>
+#include <ft2build.h>
+#include FT_FREETYPE_H
+
#include <cairo.h>
#include <wayland-client.h>
#include <primary-selection-unstable-v1.h>
@@ -209,6 +212,7 @@ struct glyph_cache {
};
struct font {
+ FT_Face face;
cairo_scaled_font_t *font;
struct {
double position;