Index: Source/platform/fonts/skia/FontCacheSkia.cpp |
diff --git a/Source/platform/fonts/skia/FontCacheSkia.cpp b/Source/platform/fonts/skia/FontCacheSkia.cpp |
index a21fed4868ed198bd524c2879bc372cb115478d9..6093a23ef966e6e81a366162b80787717604559e 100644 |
--- a/Source/platform/fonts/skia/FontCacheSkia.cpp |
+++ b/Source/platform/fonts/skia/FontCacheSkia.cpp |
@@ -149,6 +149,17 @@ PassRefPtr<SimpleFontData> FontCache::getLastResortFallbackFont(const FontDescri |
DEFINE_STATIC_LOCAL(const FontFaceCreationParams, arialCreationParams, (AtomicString("Arial", AtomicString::ConstructFromLiteral))); |
fontPlatformData = getFontPlatformData(description, arialCreationParams); |
} |
+#if OS(WIN) |
+ // Try some more Windows-specific fallbacks. |
+ if (!fontPlatformData) { |
+ DEFINE_STATIC_LOCAL(const FontFaceCreationParams, msuigothicCreationParams, (AtomicString("MS UI Gothic", AtomicString::ConstructFromLiteral))); |
+ fontPlatformData = getFontPlatformData(description, msuigothicCreationParams); |
+ } |
+ if (!fontPlatformData) { |
+ DEFINE_STATIC_LOCAL(const FontFaceCreationParams, mssansserifCreationParams, (AtomicString("Microsoft Sans Serif", AtomicString::ConstructFromLiteral))); |
+ fontPlatformData = getFontPlatformData(description, mssansserifCreationParams); |
+ } |
+#endif |
ASSERT(fontPlatformData); |
return fontDataFromFontPlatformData(fontPlatformData, shouldRetain); |