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

5
font.h
View file

@ -1,5 +1,6 @@
#pragma once
#include <cairo.h>
#include <stdbool.h>
#include "terminal.h"
cairo_scaled_font_t *font_from_name(const char *name);
bool font_from_name(const char *name, struct font *result);