mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-23 05:33:57 -04:00
font: load FreeType face, and set it's pixel sizes
This commit is contained in:
parent
90d357befb
commit
cb02c9cf41
6 changed files with 63 additions and 25 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue