aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-19 03:43:27 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-19 03:43:27 +0100
commit6da1df6204ae118ceada0eff08a0ac7d42b3548a (patch)
tree527886112ec361058c63a43ee8f2286c9a60edb7 /tests
parentf4833afa1afa56def5a6d54fa8ce22d3a9b4eb55 (diff)
Slightly improve font rendering quality
Diffstat (limited to 'tests')
-rw-r--r--tests/main.c6
1 files changed, 3 insertions, 3 deletions
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)