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
The text to layout.
px: f32
The scale of the text in pixel units. The units of the scale are pixels per Em unit.
font_index: usize
The font to layout the text in.
user_data: U
Additional user data to associate with glyphs produced by this text style.