From 69aa75b63cd86acf1b6001133d6f9b163033195d Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Fri, 17 Oct 2025 23:23:19 -0400 Subject: fix config and font size --- font.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'font.c') diff --git a/font.c b/font.c index 4191fa5..740ba6b 100644 --- a/font.c +++ b/font.c @@ -1,6 +1,8 @@ #include + #include "font.h" #include "array.h" +#include "config.h" char* get_font(const char* font_name) { FcPattern* pattern = FcNameParse((const FcChar8*)font_name); @@ -56,7 +58,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, 16 << 6, 0, 0)) { + if (FT_Set_Char_Size(state->ft_face, 0, font_size << 6, 0, 0)) { fprintf(stderr, "Failed to set font size\n"); return false; } -- cgit v1.2.3