aboutsummaryrefslogtreecommitdiff
path: root/font.c
diff options
context:
space:
mode:
authorRiley Beckett <rbeckettvt@gmail.com>2025-10-16 09:41:06 -0400
committerRiley Beckett <rbeckettvt@gmail.com>2025-10-16 09:41:06 -0400
commitab4b6df33f1f07c49996bc6a770d387a3a71e6c7 (patch)
tree94841f0297cc7a7eec0b684a2a39e11ed0d7b202 /font.c
parent234fb5416e3008544c7a1755d9e26d1d3d5a0549 (diff)
fix text layouting
Diffstat (limited to 'font.c')
-rw-r--r--font.c4
1 files changed, 2 insertions, 2 deletions
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;
}