From 6da1df6204ae118ceada0eff08a0ac7d42b3548a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 19 Nov 2021 03:43:27 +0100 Subject: Slightly improve font rendering quality --- tests/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/main.c b/tests/main.c index b341bb3..a544761 100644 --- a/tests/main.c +++ b/tests/main.c @@ -57,7 +57,7 @@ static void draw(mgl_window *window, void *userdata) { fprintf(stderr, "fps: %d\n", u->fps); } char str[255]; - snprintf(str, sizeof(str), "hello|fps\nåäö: %d", u->fps); + snprintf(str, sizeof(str), "I finally did it!! Me and my sock puppets riled Connor and Punk"); mgl_text text; mgl_text_init(&text, u->font, str, strlen(str)); @@ -256,10 +256,10 @@ int main(int argc, char **argv) { if(mgl_mapped_file_load("/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc", &cjk_font_file, &(mgl_memory_mapped_file_load_options){ .readable = true, .writable = false }) != 0) return 1; - if(mgl_font_load_from_file(&font, &font_file, 26) != 0) + if(mgl_font_load_from_file(&font, &font_file, 22) != 0) return 1; - if(mgl_font_load_from_file(&cjk_font, &cjk_font_file, 26) != 0) + if(mgl_font_load_from_file(&cjk_font, &cjk_font_file, 22) != 0) return 1; if(mgl_shader_program_init(&shader_program) != 0) -- cgit v1.2.3