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

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

Issue 553163002: [DirectWrite] Limit noSubpixelForSmallSizeFont to low-DPI (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « Source/platform/fonts/win/FontPlatformDataWin.cpp ('k') | public/web/win/WebFontRendering.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/win/WebFontRendering.cpp
diff --git a/Source/web/win/WebFontRendering.cpp b/Source/web/win/WebFontRendering.cpp
index ed2bab02b4b1d40d9fbb19bd7a25de218b64364f..16cd61c8d38bceef37e3fd2d22df70ad624f2e07 100644
--- a/Source/web/win/WebFontRendering.cpp
+++ b/Source/web/win/WebFontRendering.cpp
@@ -22,6 +22,12 @@ void WebFontRendering::setDirectWriteFactory(IDWriteFactory* factory)
}
// static
+void WebFontRendering::setDeviceScaleFactor(float deviceScaleFactor)
+{
+ blink::FontCache::setDeviceScaleFactor(deviceScaleFactor);
+}
+
+// static
void WebFontRendering::setUseSubpixelPositioning(bool useSubpixelPositioning)
{
blink::FontCache::setUseSubpixelPositioning(useSubpixelPositioning);
« no previous file with comments | « Source/platform/fonts/win/FontPlatformDataWin.cpp ('k') | public/web/win/WebFontRendering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698