Struct fontdue::layout::TextStyle [−][src]
pub struct TextStyle<'a, U: Copy + Clone = ()> { pub text: &'a str, pub px: f32, pub font_index: usize, pub user_data: U, }
Expand description
A style description for a segment of text.
Fields
text: &'a str
Expand description
The text to layout.
px: f32
Expand description
The scale of the text in pixel units.
font_index: usize
Expand description
The font to layout the text in.
user_data: U
Expand description
Additional user data to associate with glyphs produced by this text style.
Implementations
Auto Trait Implementations
impl<'a, U> RefUnwindSafe for TextStyle<'a, U> where
U: RefUnwindSafe,
U: RefUnwindSafe,
impl<'a, U> Send for TextStyle<'a, U> where
U: Send,
U: Send,
impl<'a, U> Sync for TextStyle<'a, U> where
U: Sync,
U: Sync,
impl<'a, U> Unpin for TextStyle<'a, U> where
U: Unpin,
U: Unpin,
impl<'a, U> UnwindSafe for TextStyle<'a, U> where
U: UnwindSafe,
U: UnwindSafe,