From 8749a37e36fe1be8324e37e65b15ecf5755b5c8a Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Wed, 24 Apr 2019 19:16:34 +1000 Subject: [PATCH] Also add cantarell as a default font to fix crash on some linux distribution setups (thanks xerolyph) --- src/Drawer2D.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Drawer2D.c b/src/Drawer2D.c index a2a10f33b..fe0fd58d2 100644 --- a/src/Drawer2D.c +++ b/src/Drawer2D.c @@ -684,12 +684,13 @@ static void Drawer2D_TextureChanged(void* obj, struct Stream* src, const String* } static void Drawer2D_CheckFont(void) { - const static String default_fonts[6] = { + const static String default_fonts[7] = { String_FromConst("Arial"), /* preferred font on all platforms */ String_FromConst("Century Schoolbook L Roman"), /* commonly available on linux */ String_FromConst("Nimbus Sans"), /* other common ones */ String_FromConst("Liberation Sans"), String_FromConst("Bitstream Charter"), + String_FromConst("Cantarell"), String_FromConst("DejaVu Sans Book") }; String path;