This PR brings `Direct Write` to Zed. Now, Zed first trys to query dwrite interface, if not supported, which means runing on Windows below win10 1703), will choose `cosmic` as a fallback text system. This direct write text system supports: - Full font features support - Emoji support - Default system fonts as fallback ### Font features https://github.com/zed-industries/zed/assets/14981363/198eff88-47df-4bc8-a257-e3acf81fd61d ### Emoji  **Note: input emoji through IME or IMM not working yet, copy paste emoji works fine (will be fixed by #10125 )** ### Font fallback I use `Zed mono` which dose not support chinese chars to test font fallback https://github.com/zed-industries/zed/assets/14981363/c97d0847-0ac5-47e6-aa00-f3ce6d1e50a5 Release Notes: - N/A
16 lines
301 B
Rust
16 lines
301 B
Rust
mod direct_write;
|
|
mod dispatcher;
|
|
mod display;
|
|
mod platform;
|
|
mod util;
|
|
mod window;
|
|
|
|
pub(crate) use direct_write::*;
|
|
pub(crate) use dispatcher::*;
|
|
pub(crate) use display::*;
|
|
pub(crate) use platform::*;
|
|
pub(crate) use util::*;
|
|
pub(crate) use window::*;
|
|
|
|
pub(crate) use windows::Win32::Foundation::HWND;
|