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: Fontfont_size: f32brightness: f32curve: f32line_spacing: f32top_drop: f32height_factor: f32Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TextStyle
impl UnwindSafe for TextStyle
Blanket Implementations
Mutably borrows from an owned value. Read more