From ab4b6df33f1f07c49996bc6a770d387a3a71e6c7 Mon Sep 17 00:00:00 2001 From: Riley Beckett Date: Thu, 16 Oct 2025 09:41:06 -0400 Subject: fix text layouting --- font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'font.c') diff --git a/font.c b/font.c index 85e0a24..bbd7d33 100644 --- a/font.c +++ b/font.c @@ -30,7 +30,7 @@ char* get_font(const char* font_name) { FcFontSetSortDestroy(font_patterns); FcPatternDestroy(pattern); - if (!fs || !font_patterns->nfont) { + if (!fs || !fs->nfont) { fprintf(stderr, "Could not prepare font set\n"); } FcObjectSet* os = FcObjectSetBuild(FC_FILE, (char*)0); @@ -56,7 +56,7 @@ bool freetype_init(client_state* state, const char* file) { fprintf(stderr, "Failed to create font\n"); return false; } - if (FT_Set_Char_Size(state->ft_face, 0, 12 << 6, 0, 0)) { + if (FT_Set_Char_Size(state->ft_face, 0, 16 << 6, 0, 0)) { fprintf(stderr, "Failed to set font size\n"); return false; } -- cgit v1.2.3