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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontCache.h

Issue 1883483002: Add code to call skia's matchFamilyStyleCharacter API, which uses the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fallbackproxy
Patch Set: Add expectation for font-fallback failure on Win7 and revert DEPS change Created 4 years, 8 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
Index: third_party/WebKit/Source/platform/fonts/FontCache.h
diff --git a/third_party/WebKit/Source/platform/fonts/FontCache.h b/third_party/WebKit/Source/platform/fonts/FontCache.h
index 10e5f6115500206d02effac477cfabe8a67aa88c..e9e5d67a535ade028d047c4060eb44b62c64eadb 100644
--- a/third_party/WebKit/Source/platform/fonts/FontCache.h
+++ b/third_party/WebKit/Source/platform/fonts/FontCache.h
@@ -123,6 +123,7 @@ public:
static const AtomicString& smallCaptionFontFamily() { return *s_smallCaptionFontFamilyName; }
static int32_t statusFontHeight() { return s_statusFontHeight; }
static const AtomicString& statusFontFamily() { return *s_statusFontFamilyName; }
+ static void setUseSkiaFontFallback(bool useSkiaFontFallback) { s_useSkiaFontFallback = useSkiaFontFallback; }
#endif
typedef uint32_t FontFileKey;
@@ -201,6 +202,7 @@ private:
static int32_t s_smallCaptionFontHeight;
static AtomicString* s_statusFontFamilyName;
static int32_t s_statusFontHeight;
+ static bool s_useSkiaFontFallback;
#endif
friend class SimpleFontData; // For fontDataFromFontPlatformData
@@ -215,6 +217,8 @@ public:
~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); }
};
+CString toSkFontMgrLocale(const String& locale);
+
} // namespace blink
#endif

Powered by Google App Engine
This is Rietveld 408576698