diff options
author | Michael Pavone <pavone@retrodev.com> | 2020-05-09 13:15:49 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2020-05-09 13:15:49 -0700 |
commit | 758a2d754ec7d13eddb86010280569c46b5e9d38 (patch) | |
tree | ce76fa2f5e019be3c2de08c79d3dc4c00bacb7fa /nuklear_ui | |
parent | 96566fbaea7ff47347fc1a3b5b882b29ef80f459 (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.c | 3 |
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; } |