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

Unified Diff: content/browser/browser_main_runner.cc

Issue 726893005: Enable DirectWrite for font metrics and font rendering in Chrome UI on Windows by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | ui/gfx/switches.h » ('j') | ui/gfx/switches.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_runner.cc
diff --git a/content/browser/browser_main_runner.cc b/content/browser/browser_main_runner.cc
index 39a8706b7a40886c80be25458b4949ac5619bfa2..67263fe61128b75033f48c62c99e085e530c2145 100644
--- a/content/browser/browser_main_runner.cc
+++ b/content/browser/browser_main_runner.cc
@@ -119,8 +119,8 @@ void InstallSha256LegacyHooks() {
void MaybeEnableDirectWriteFontRendering() {
if (gfx::win::ShouldUseDirectWrite() &&
- CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableDirectWriteForUI) &&
+ !CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableDirectWriteForUI) &&
!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableHarfBuzzRenderText)) {
typedef decltype(DWriteCreateFactory)* DWriteCreateFactoryProc;
« no previous file with comments | « no previous file | ui/gfx/switches.h » ('j') | ui/gfx/switches.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698