From 6332bc55e419dafeecd57b0110c84b23184395ee Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 25 Jun 2020 12:55:15 +1000 Subject: [PATCH] Try 'Slate for OnePlus' font before 'Roboto', fixes launcher text appearing as boxes on some android 10 devices (Thanks Odd0002) --- src/Drawer2D.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Drawer2D.c b/src/Drawer2D.c index 1f0795e83..71a08eaf3 100644 --- a/src/Drawer2D.c +++ b/src/Drawer2D.c @@ -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 */