Mercurial > repos > blastem
diff nuklear_ui/font.c @ 1976:3dd9c68472fb
Specify desired language when invoking fc-match to find an appropriate font on Linux
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 09 May 2020 13:15:49 -0700 |
parents | 253c62b7144e |
children | 369a52e302e2 |
line wrap: on
line diff
--- a/nuklear_ui/font.c Fri May 08 16:52:32 2020 -0700 +++ b/nuklear_ui/font.c Sat May 09 13:15:49 2020 -0700 @@ -14,7 +14,8 @@ 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; }