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

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

Issue 235553003: Support sideloaded fonts for DirectWrite (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 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: Source/web/win/WebFontRendering.cpp
diff --git a/Source/web/win/WebFontRendering.cpp b/Source/web/win/WebFontRendering.cpp
index 6af08c6e9befd478dc346c67aea49c79265947f3..c7f27c716862dd6e0a4e5669229af67f07767b15 100644
--- a/Source/web/win/WebFontRendering.cpp
+++ b/Source/web/win/WebFontRendering.cpp
@@ -27,4 +27,10 @@ void WebFontRendering::setUseSubpixelPositioning(bool useSubpixelPositioning)
WebCore::FontCache::setUseSubpixelPositioning(useSubpixelPositioning);
}
+// static
+void WebFontRendering::addSideloadedFont(SkTypeface* typeface)
+{
+ WebCore::FontCache::addSideloadedFont(typeface);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698