Use shared text system on Linux and Windows (#10098)
closes #10129 closes #10269 Release Notes: - N/A
This commit is contained in:
parent
8f69eac402
commit
bfd9bb8a7c
9 changed files with 33 additions and 481 deletions
|
@ -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()>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue