diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-17 23:23:19 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-10-17 23:23:19 -0400 |
| commit | 69aa75b63cd86acf1b6001133d6f9b163033195d (patch) | |
| tree | 937e1a19c7c56c599e532c33ea87859dc574346a | |
| parent | 2afa6a39629fb331d284afa454b9aa50e7f0adcf (diff) | |
fix config and font size
| -rw-r--r-- | config.h | 3 | ||||
| -rw-r--r-- | font.c | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -3,6 +3,7 @@ #include <stdint.h> -const uint32_t min_width = 600; +static const uint32_t min_width = 600; +static const uint32_t font_size = 16; #endif @@ -1,6 +1,8 @@ #include <fontconfig/fontconfig.h> + #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; } |
