Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0e31722 authored by d34d's avatar d34d Committed by Adnan Begovic
Browse files

Fonts: add sans-serif fallback fonts first

This fixes an issue where the non line breaking hyphen U+2011 being
displayed as and underscore due to the glyph being found in one of
the fallback fonts.  Adding the sans-serif(Roboto) fonts as fallbacks
first allows the glyph to be found in this family before moving on
to the other fallback fonts.

Change-Id: Ie6ac7e8c838f3a2b864ff25bc9569a8f37beffb9
TICKET: CYNGNOS-1855
(cherry picked from commit f1d7b86d)
parent 371b8800
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -379,9 +379,9 @@ public class Typeface {
            if (configFile == themeConfigFile) {
                systemFontConfig = FontListParser.parse(systemConfigFile,
                        getSystemFontDirLocation().getAbsolutePath());
                addFallbackFontsForFamilyName(systemFontConfig, fontConfig, SANS_SERIF_FAMILY_NAME);
                addMissingFontFamilies(systemFontConfig, fontConfig);
                addMissingFontAliases(systemFontConfig, fontConfig);
                addFallbackFontsForFamilyName(systemFontConfig, fontConfig, SANS_SERIF_FAMILY_NAME);
            }

            List<FontFamily> familyList = new ArrayList<FontFamily>();