diff --git a/gfx/thebes/gfxFT2FontList.cpp b/gfx/thebes/gfxFT2FontList.cpp index 3453eee9d1a..f356446c974 100644 --- a/gfx/thebes/gfxFT2FontList.cpp +++ b/gfx/thebes/gfxFT2FontList.cpp @@ -1426,7 +1426,12 @@ gfxFT2FontList::GetDefaultFont(const gfxFontStyle* aStyle) return FindFamily(resolvedName); } } -#elif defined(ANDROID) +#elif defined(MOZ_WIDGET_GONK) + nsAutoString resolvedName; + if (ResolveFontName(NS_LITERAL_STRING("Fira Sans OT"), resolvedName)) { + return FindFamily(resolvedName); + } +#elif defined(MOZ_WIDGET_ANDROID) nsAutoString resolvedName; if (ResolveFontName(NS_LITERAL_STRING("Roboto"), resolvedName) || ResolveFontName(NS_LITERAL_STRING("Droid Sans"), resolvedName)) { diff --git a/layout/reftests/canvas/reftest.list b/layout/reftests/canvas/reftest.list index b557068d5e8..0e291e473b3 100644 --- a/layout/reftests/canvas/reftest.list +++ b/layout/reftests/canvas/reftest.list @@ -43,7 +43,7 @@ fuzzy-if(azureSkiaGL,10,400) == text-not-in-doc-test.html text-not-in-doc-ref.ht != text-bidi-ltr-test.html text-bidi-ltr-notref.html # for bug 698185 == text-bidi-rtl-test.html text-bidi-rtl-ref.html -!= text-font-lang.html text-font-lang-notref.html +skip-if(B2G) != text-font-lang.html text-font-lang-notref.html == text-measure.html text-measure-ref.html diff --git a/widget/gonk/nsLookAndFeel.cpp b/widget/gonk/nsLookAndFeel.cpp index 14dc8930daa..ccedd40d019 100644 --- a/widget/gonk/nsLookAndFeel.cpp +++ b/widget/gonk/nsLookAndFeel.cpp @@ -420,7 +420,7 @@ nsLookAndFeel::GetFontImpl(FontID aID, nsString& aFontName, gfxFontStyle& aFontStyle, float aDevPixPerCSSPixel) { - aFontName.AssignLiteral("\"Fira Sans\""); + aFontName.AssignLiteral("\"Fira Sans OT\""); aFontStyle.style = NS_FONT_STYLE_NORMAL; aFontStyle.weight = NS_FONT_WEIGHT_NORMAL; aFontStyle.stretch = NS_FONT_STRETCH_NORMAL;