diff options
| author | Riley Beckett <rbeckettvt@gmail.com> | 2025-10-16 09:41:06 -0400 |
|---|---|---|
| committer | Riley Beckett <rbeckettvt@gmail.com> | 2025-10-16 09:41:06 -0400 |
| commit | ab4b6df33f1f07c49996bc6a770d387a3a71e6c7 (patch) | |
| tree | 94841f0297cc7a7eec0b684a2a39e11ed0d7b202 /font.c | |
| parent | 234fb5416e3008544c7a1755d9e26d1d3d5a0549 (diff) | |
fix text layouting
Diffstat (limited to 'font.c')
| -rw-r--r-- | font.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |
