Try 'Slate for OnePlus' font before 'Roboto', fixes launcher text appearing as boxes on some android 10 devices (Thanks Odd0002)

This commit is contained in:
UnknownShadow200 2020-06-25 12:55:15 +10:00
parent e70362a46e
commit 6332bc55e4

View File

@ -36,7 +36,7 @@ void DrawTextArgs_MakeEmpty(struct DrawTextArgs* args, struct FontDesc* font, cc
/*########################################################################################################################*
*-----------------------------------------------------Font functions------------------------------------------------------*
*#########################################################################################################################*/
static String font_candidates[9] = {
static String font_candidates[10] = {
String_FromConst(""), /* Filled in with Drawer2D_FontName */
String_FromConst("Arial"), /* preferred font on all platforms */
String_FromConst("Liberation Sans"), /* nice looking fallbacks for linux */
@ -45,7 +45,8 @@ static String font_candidates[9] = {
String_FromConst("Cantarell"),
String_FromConst("DejaVu Sans Book"),
String_FromConst("Century Schoolbook L Roman"), /* commonly available on linux */
String_FromConst("Roboto") /* android */
String_FromConst("Slate For OnePlus"), /* android 10, some devices */
String_FromConst("Roboto") /* android (broken on some android 10 devices) */
};
/* adjusts height to be closer to system fonts */