From 758a2d754ec7d13eddb86010280569c46b5e9d38 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sat, 9 May 2020 13:15:49 -0700 Subject: Specify desired language when invoking fc-match to find an appropriate font on Linux --- nuklear_ui/font.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nuklear_ui/font.c b/nuklear_ui/font.c index 8dde3d0..b949a57 100644 --- a/nuklear_ui/font.c +++ b/nuklear_ui/font.c @@ -14,7 +14,8 @@ char *default_font_path(void) return strdup(FONT_PATH); } #endif - FILE *fc_pipe = popen("fc-match -f '%{file}'", "r"); + //TODO: specify language dynamically once BlastEm is localized + FILE *fc_pipe = popen("fc-match :lang=en -f '%{file}'", "r"); if (!fc_pipe) { return NULL; } -- cgit v1.2.3