font: load FreeType face, and set it's pixel sizes

This commit is contained in:
Daniel Eklöf 2019-07-28 12:09:22 +02:00
parent 90d357befb
commit cb02c9cf41
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 63 additions and 25 deletions

View file

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