pub struct TypographySettings {
pub font_family: FontFamily,
pub base_font_size: Option<f64>,
pub line_height: Option<f64>,
pub content_width: ContentWidth,
}Expand description
Typography settings for a workspace.
Mirrors the frontend TypographySettings interface.
Fields§
§font_family: FontFamilyFont family choice.
base_font_size: Option<f64>Base font size in pixels.
line_height: Option<f64>Line height multiplier.
content_width: ContentWidthContent max-width choice.
Implementations§
Source§impl TypographySettings
impl TypographySettings
Sourcepub fn to_css_vars(&self) -> String
pub fn to_css_vars(&self) -> String
Generate CSS variable declarations for typography settings.
Trait Implementations§
Source§impl Clone for TypographySettings
impl Clone for TypographySettings
Source§fn clone(&self) -> TypographySettings
fn clone(&self) -> TypographySettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypographySettings
impl Debug for TypographySettings
Source§impl Default for TypographySettings
impl Default for TypographySettings
Source§fn default() -> TypographySettings
fn default() -> TypographySettings
Returns the “default value” for a type. Read more
Source§impl FromValue for TypographySettings
impl FromValue for TypographySettings
Auto Trait Implementations§
impl Freeze for TypographySettings
impl RefUnwindSafe for TypographySettings
impl Send for TypographySettings
impl Sync for TypographySettings
impl Unpin for TypographySettings
impl UnsafeUnpin for TypographySettings
impl UnwindSafe for TypographySettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more