diff --git a/atom/browser/web_contents_preferences.cc b/atom/browser/web_contents_preferences.cc index 8a7eee09201f..978ca22e86bc 100644 --- a/atom/browser/web_contents_preferences.cc +++ b/atom/browser/web_contents_preferences.cc @@ -79,12 +79,6 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches( base::DictionaryValue& web_preferences = self->web_preferences_; bool b; -#if defined(OS_WIN) - // Check if DirectWrite is disabled. - if (web_preferences.GetBoolean(options::kDirectWrite, &b) && !b) - command_line->AppendSwitch(::switches::kDisableDirectWrite); -#endif - // Check if plugins are enabled. if (web_preferences.GetBoolean("plugins", &b) && b) command_line->AppendSwitch(switches::kEnablePlugins); diff --git a/atom/common/options_switches.cc b/atom/common/options_switches.cc index 36ec19edb863..6b514599f085 100644 --- a/atom/common/options_switches.cc +++ b/atom/common/options_switches.cc @@ -96,9 +96,6 @@ const char kNodeIntegration[] = "nodeIntegration"; // Instancd ID of guest WebContents. const char kGuestInstanceID[] = "guestInstanceId"; -// Enable DirectWrite on Windows. -const char kDirectWrite[] = "directWrite"; - // Web runtime features. const char kExperimentalFeatures[] = "experimentalFeatures"; const char kExperimentalCanvasFeatures[] = "experimentalCanvasFeatures"; diff --git a/atom/common/options_switches.h b/atom/common/options_switches.h index 29fbc0e40f84..54c638772887 100644 --- a/atom/common/options_switches.h +++ b/atom/common/options_switches.h @@ -48,7 +48,6 @@ extern const char kFocusable[]; extern const char kWebPreferences[]; // WebPreferences. -extern const char kDirectWrite[]; extern const char kZoomFactor[]; extern const char kPreloadScript[]; extern const char kPreloadURL[]; diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 1f3d9d49bf06..da0718ae00a0 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -249,8 +249,6 @@ The `webPreferences` option is an object that can have following properties: Default is `false`. * `experimentalCanvasFeatures` Boolean - Enables Chromium's experimental canvas features. Default is `false`. -* `directWrite` Boolean - Enables DirectWrite font rendering system on - Windows. Default is `true`. * `scrollBounce` Boolean - Enables scroll bounce (rubber banding) effect on macOS. Default is `false`. * `blinkFeatures` String - A list of feature strings separated by `,`, like