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

Unified Diff: Source/web/win/WebFontRendering.cpp

Issue 790733005: Blink side of the change to pass the system font metrics from the browser to the renderer on Windo… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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: Source/web/win/WebFontRendering.cpp
diff --git a/Source/web/win/WebFontRendering.cpp b/Source/web/win/WebFontRendering.cpp
index 16cd61c8d38bceef37e3fd2d22df70ad624f2e07..4667abb7afc7f74bcf12751aa9cf76651faa5a5c 100644
--- a/Source/web/win/WebFontRendering.cpp
+++ b/Source/web/win/WebFontRendering.cpp
@@ -39,4 +39,23 @@ void WebFontRendering::addSideloadedFontForTesting(SkTypeface* typeface)
blink::FontCache::addSideloadedFontForTesting(typeface);
}
+// static
+void WebFontRendering::setMenuFontMetrics(const wchar_t* familyName, int32_t fontHeight)
+{
+ blink::FontCache::setMenuFontMetrics(familyName, fontHeight);
+}
+
+// static
+void WebFontRendering::setSmallCaptionFontMetrics(const wchar_t* familyName, int32_t fontHeight)
+{
+ blink::FontCache::setSmallCaptionFontMetrics(familyName, fontHeight);
+}
+
+// static
+void WebFontRendering::setStatusFontMetrics(const wchar_t* familyName, int32_t fontHeight)
+{
+ blink::FontCache::setStatusFontMetrics(familyName, fontHeight);
+}
+
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698