#[repr(C)]pub struct SystemFonts {
pub ui_font: OptionString,
pub ui_font_size: OptionF32,
pub monospace_font: OptionString,
pub monospace_font_size: OptionF32,
pub ui_font_bold: OptionString,
pub title_font: OptionString,
pub title_font_size: OptionF32,
pub menu_font: OptionString,
pub menu_font_size: OptionF32,
pub small_font: OptionString,
pub small_font_size: OptionF32,
}Expand description
Common system font settings.
On macOS, these are queried from NSFont. On Windows, these come from SystemParametersInfo. On Linux, these come from GTK/gsettings.
Fields§
§ui_font: OptionStringThe primary font used for UI elements like buttons and labels. On macOS: SF Pro (system font) On Windows: Segoe UI On Linux: Cantarell, Ubuntu, or system default
ui_font_size: OptionF32The default font size for UI elements, in points.
monospace_font: OptionStringThe font used for code or other monospaced text. On macOS: SF Mono or Menlo On Windows: Cascadia Mono or Consolas On Linux: Ubuntu Mono or DejaVu Sans Mono
monospace_font_size: OptionF32Monospace font size in points
ui_font_bold: OptionStringBold variant of the UI font (if different)
title_font: OptionStringFont for window titles
title_font_size: OptionF32Title font size in points
Font for menu items
Menu font size in points
small_font: OptionStringSmall/caption font for less prominent text
small_font_size: OptionF32Small font size in points
Trait Implementations§
Source§impl Clone for SystemFonts
impl Clone for SystemFonts
Source§fn clone(&self) -> SystemFonts
fn clone(&self) -> SystemFonts
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more