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

Unified Diff: third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp

Issue 2138613002: Set the font family for the "system-ui" generic font family on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WIP Created 4 years, 3 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/win/FontCacheSkiaWin.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp b/third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp
index d354cd12a75dbbbb4bc56ae1c9be6afc73679d6f..37abccfeab216ba3df185e5206048ce15fddcb10 100644
--- a/third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp
+++ b/third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp
@@ -77,6 +77,12 @@ void FontCache::addSideloadedFontForTesting(SkTypeface* typeface)
}
// static
+const AtomicString& FontCache::systemFontFamily()
+{
+ return *s_menuFontFamilyName;
+}
+
+// static
void FontCache::setMenuFontMetrics(const wchar_t* familyName, int32_t fontHeight)
{
s_menuFontFamilyName = new AtomicString(familyName);

Powered by Google App Engine
This is Rietveld 408576698