changeset 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 3701517d852c
children f3cca4b3f17a
files nuklear_ui/font.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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;
 	}