diff --git a/ports/libsimpleservo/api/src/lib.rs b/ports/libsimpleservo/api/src/lib.rs index 0c268def50c..d01239a1e75 100644 --- a/ports/libsimpleservo/api/src/lib.rs +++ b/ports/libsimpleservo/api/src/lib.rs @@ -30,8 +30,7 @@ use servo::euclid::{Point2D, Rect, Scale, Size2D, Vector2D}; use servo::keyboard_types::{Key, KeyState, KeyboardEvent}; use servo::msg::constellation_msg::TraversalDirection; use servo::script_traits::{TouchEventType, TouchId}; -use servo::servo_config::opts; -use servo::servo_config::{pref, set_pref}; +use servo::servo_config::{opts, pref}; use servo::servo_url::ServoUrl; use servo::webrender_api::units::DevicePixel; use servo::webrender_api::ScrollLocation; @@ -62,7 +61,6 @@ pub struct InitOptions { pub coordinates: Coordinates, pub density: f32, pub xr_discovery: Option, - pub enable_subpixel_text_antialiasing: bool, pub gl_context_pointer: Option<*const c_void>, pub native_display_pointer: Option<*const c_void>, pub native_widget: *mut c_void, @@ -227,11 +225,6 @@ pub fn init( ) -> Result<(), &'static str> { resources::set(Box::new(ResourceReaderInstance::new())); - set_pref!( - gfx.subpixel_text_antialiasing.enabled, - init_opts.enable_subpixel_text_antialiasing - ); - if let Some(prefs) = init_opts.prefs { add_user_prefs(prefs); } diff --git a/ports/libsimpleservo/capi/src/lib.rs b/ports/libsimpleservo/capi/src/lib.rs index 01044cf70c2..9bace40a29d 100644 --- a/ports/libsimpleservo/capi/src/lib.rs +++ b/ports/libsimpleservo/capi/src/lib.rs @@ -243,7 +243,6 @@ pub struct CInitOptions { pub width: i32, pub height: i32, pub density: f32, - pub enable_subpixel_text_antialiasing: bool, pub vslogger_mod_list: *const *const c_char, pub vslogger_mod_size: u32, pub native_widget: *mut c_void, @@ -446,7 +445,6 @@ unsafe fn init( prefs, density: opts.density, xr_discovery: None, - enable_subpixel_text_antialiasing: opts.enable_subpixel_text_antialiasing, gl_context_pointer: gl_context, native_display_pointer: display, native_widget: opts.native_widget, diff --git a/resources/package-prefs.json b/resources/package-prefs.json index b469b0d5c5d..035f08714ee 100644 --- a/resources/package-prefs.json +++ b/resources/package-prefs.json @@ -9,7 +9,8 @@ "_comment": "settings specific to Hololens/UWP builds", "devtools.server.enabled": true, "dom.webxr.enabled": true, - "shell.homepage": "https://servo.org/hl-home/" + "shell.homepage": "https://servo.org/hl-home/", + "gfx.subpixel-text-antialiasing.enabled": false }, "vr": { "_comment": "settings specific to VR builds", diff --git a/support/hololens/ServoApp/ServoControl/Servo.cpp b/support/hololens/ServoApp/ServoControl/Servo.cpp index 0602fcb7992..7adef0a8511 100644 --- a/support/hololens/ServoApp/ServoControl/Servo.cpp +++ b/support/hololens/ServoApp/ServoControl/Servo.cpp @@ -200,7 +200,6 @@ Servo::Servo(std::optional initUrl, hstring args, GLsizei width, o.width = mWindowWidth; o.height = mWindowHeight; o.density = dpi; - o.enable_subpixel_text_antialiasing = false; o.native_widget = eglNativeWindow; // Note about logs: