summaryrefslogtreecommitdiff
path: root/nuklear_ui
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2020-05-09 13:15:49 -0700
committerMichael Pavone <pavone@retrodev.com>2020-05-09 13:15:49 -0700
commit758a2d754ec7d13eddb86010280569c46b5e9d38 (patch)
treece76fa2f5e019be3c2de08c79d3dc4c00bacb7fa /nuklear_ui
parent96566fbaea7ff47347fc1a3b5b882b29ef80f459 (diff)
Specify desired language when invoking fc-match to find an appropriate font on Linux
Diffstat (limited to 'nuklear_ui')
-rw-r--r--nuklear_ui/font.c3
1 files changed, 2 insertions, 1 deletions
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;
}