Make CosmicTextSystem
Linux-only (#14728)
Since `WindowsDispatcher` requires a minimum Windows version of Windows 10 Fall Creators Update (10.0.16299), and the `alacritty_terminal` dependency relies on conPTY, an API introduced in the same version, additionally, `DirectWriteTextSystem` also relies on Windows 10 Fall Creators Update (10.0.16299), so it seems reasonable to make `CosmicTextSystem` Linux-only. And we can use `DirectWriteTextSystem` on the Windows platform exclusively. I hope this approach makes sense. Release Notes: - N/A
This commit is contained in:
parent
a60b3b9389
commit
82d6ad4616
7 changed files with 11 additions and 28 deletions
|
@ -49,7 +49,7 @@ impl TestPlatform {
|
|||
let text_system = Arc::new(crate::platform::mac::MacTextSystem::new());
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
let text_system = Arc::new(crate::platform::cosmic_text::CosmicTextSystem::new());
|
||||
let text_system = Arc::new(crate::platform::linux::CosmicTextSystem::new());
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
let text_system = Arc::new(crate::platform::windows::DirectWriteTextSystem::new().unwrap());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue