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

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

Issue 210243004: Usage of DirectWrite now determined browser-side (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: web function rather than RuntimeEnabledFeature Created 6 years, 9 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
new file mode 100644
index 0000000000000000000000000000000000000000..63902284300c5b7123cc351697432ba6f098a0f3
--- /dev/null
+++ b/Source/web/win/WebFontRendering.cpp
@@ -0,0 +1,23 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+#include "public/web/win/WebFontRendering.h"
+
+#include "platform/fonts/FontCache.h"
+
+namespace blink {
+
+// static
+void WebFontRendering::setUseDirectWrite(bool useDirectWrite)
+{
+ WebCore::FontCache::setUseDirectWrite(useDirectWrite);
+}
+
+void WebFontRendering::setUseSubpixelPositioning(bool useSubpixelPositioning)
+{
+ WebCore::FontCache::setUseSubpixelPositioning(useSubpixelPositioning);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698