Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1023)

Unified Diff: third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp

Issue 2302663002: Add more last resort fallback fonts in the vague hope that at least one can be loaded successfully. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp b/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp
index a81e5a00987eb9a109709e259eee433fda40018c..87b584c4d2f934f5db40c671a379f4cdf9ed449b 100644
--- a/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp
+++ b/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp
@@ -148,6 +148,22 @@ PassRefPtr<SimpleFontData> FontCache::getLastResortFallbackFont(const FontDescri
DEFINE_STATIC_LOCAL(const FontFaceCreationParams, mssansserifCreationParams, (AtomicString("Microsoft Sans Serif")));
fontPlatformData = getFontPlatformData(description, mssansserifCreationParams);
}
+ if (!fontPlatformData) {
+ DEFINE_STATIC_LOCAL(const FontFaceCreationParams, segoeuiCreationParams, (AtomicString("Segoe UI")));
+ fontPlatformData = getFontPlatformData(description, segoeuiCreationParams);
+ }
+ if (!fontPlatformData) {
+ DEFINE_STATIC_LOCAL(const FontFaceCreationParams, calibriCreationParams, (AtomicString("Calibri")));
+ fontPlatformData = getFontPlatformData(description, calibriCreationParams);
+ }
+ if (!fontPlatformData) {
+ DEFINE_STATIC_LOCAL(const FontFaceCreationParams, timesnewromanCreationParams, (AtomicString("Times New Roman")));
+ fontPlatformData = getFontPlatformData(description, timesnewromanCreationParams);
+ }
+ if (!fontPlatformData) {
+ DEFINE_STATIC_LOCAL(const FontFaceCreationParams, couriernewCreationParams, (AtomicString("Courier New")));
+ fontPlatformData = getFontPlatformData(description, couriernewCreationParams);
+ }
#endif
ASSERT(fontPlatformData);
« no previous file with comments | « content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698