Struct wgpu_glyph::Text [−][src]
pub struct Text<'a, X = Extra> {
pub text: &'a str,
pub scale: PxScale,
pub font_id: FontId,
pub extra: X,
}
Expand description
SectionText
+ extra.
Fields
text: &'a str
Text to render.
scale: PxScale
Pixel scale of text. Defaults to 16.
font_id: FontId
Font id to use for this section.
It must be a valid id in the FontMap
used for layout calls.
The default FontId(0)
should always be valid.
extra: X
Extra stuff for vertex generation.
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a, X> RefUnwindSafe for Text<'a, X> where
X: RefUnwindSafe,
impl<'a, X> UnwindSafe for Text<'a, X> where
X: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more