pub struct TypeStyle {
pub font_family: String,
pub paragraph_spacing: Option<f64>,
pub italic: Option<bool>,
pub font_weight: f64,
pub font_size: f64,
pub text_case: Option<TextCase>,
pub text_decoration: Option<TextDecoration>,
pub text_auto_resize: Option<TextAutoResize>,
pub hyperlink: Option<Hyperlink>,
pub line_height_px: f64,
}Expand description
Metadata for character formatting
Fields§
§font_family: StringFont family of text (standard name)
paragraph_spacing: Option<f64>Space between paragraphs in px, 0 if not present
italic: Option<bool>Whether or not text is italicized
font_weight: f64Numeric font weight
font_size: f64Font size in px
text_case: Option<TextCase>Text casing applied to the node, default is the original casing
text_decoration: Option<TextDecoration>Text decoration applied to the node, default is none
text_auto_resize: Option<TextAutoResize>Dimensions along which text will auto resize, default is that the text does not auto-resize
hyperlink: Option<Hyperlink>Link to a URL or frame
line_height_px: f64Line height in px
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TypeStyle
impl<'de> Deserialize<'de> for TypeStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TypeStyle
impl RefUnwindSafe for TypeStyle
impl Send for TypeStyle
impl Sync for TypeStyle
impl Unpin for TypeStyle
impl UnwindSafe for TypeStyle
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