pub struct TextStyle {
pub font: Font,
pub font_size: f32,
pub brightness: f32,
pub curve: f32,
pub line_spacing: f32,
pub top_drop: f32,
pub height_factor: f32,
}
Expand description
Style for how to render text.
TODO(hernan): Should we include color and font scaling as part of the text style?
TODO(JP): Make these more easily debuggable: https://github.com/Zaplib/zaplib/issues/174
Fields
font: Font
font_size: f32
brightness: f32
curve: f32
line_spacing: f32
top_drop: f32
height_factor: f32
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TextStyle
impl UnwindSafe for TextStyle
Blanket Implementations
Mutably borrows from an owned value. Read more