Also add cantarell as a default font to fix crash on some linux distribution setups (thanks xerolyph)

This commit is contained in:
UnknownShadow200 2019-04-24 19:16:34 +10:00
parent 5a4ad0dca6
commit 8749a37e36

View File

@ -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;