Merge pull request #1831 from manuvarkey/system-ui-font-face

This commit is contained in:
Hakan Seven committed 2026-10-16 01:11:11 +03:00
commit 012ccc7b65
10 files changed
+1134 -7

No files matched your search

+7
View File
@@ -2476,6 +2476,10 @@ pub enum Message {
ApplyWebFont(crate::scene::text::web_font::Script),
/// Completion of the UI renderer's runtime font registration.
WebUiFontLoaded(crate::scene::text::web_font::Script, Result<(), String>),
/// The desktop reported (or a poll may have found) a UI-font change.
UiFontSettingsChanged,
/// A re-read of the desktop UI font finished.
UiFontDetected(Option<crate::sys::ui_font::SystemUiFont>),
/// Ctrl+V. Routed by `update` into an open text editor, the drawing-object
/// clipboard, or the system text clipboard.
PasteShortcut,
@@ -5577,6 +5581,9 @@ use std::path::PathBuf;
#[cfg(not(target_arch = "wasm32"))]
pub fn run() -> iced::Result {
// UI text follows the desktop's interface font: generic sans-serif, iced's
// default font, is remapped to it before the first window opens.
crate::sys::ui_font::apply(crate::sys::ui_font::detect().as_ref());
iced::daemon(
OpenCADStudio::boot,
OpenCADStudio::update,