Use shared text system on Linux and Windows (#10098)

closes #10129
closes #10269

Release Notes:

- N/A
This commit is contained in:
Ezekiel Warren 2024-04-09 17:25:16 -07:00 committed by GitHub
parent 8f69eac402
commit bfd9bb8a7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 33 additions and 481 deletions

View file

@ -122,14 +122,11 @@ impl Platform for TestPlatform {
}
fn text_system(&self) -> Arc<dyn PlatformTextSystem> {
#[cfg(target_os = "linux")]
return Arc::new(crate::platform::linux::LinuxTextSystem::new());
#[cfg(target_os = "macos")]
return Arc::new(crate::platform::mac::MacTextSystem::new());
#[cfg(target_os = "windows")]
return Arc::new(crate::platform::windows::WindowsTextSystem::new());
#[cfg(not(target_os = "macos"))]
return Arc::new(crate::platform::cosmic_text::CosmicTextSystem::new());
}
fn run(&self, _on_finish_launching: Box<dyn FnOnce()>) {