pub struct TextStyle {
pub font: FontId,
pub size_px: u16,
}Expand description
A font and a size, together, because neither is much use alone.
Fields§
§font: FontIdWhich registered font.
size_px: u16Requested size in pixels. A source may snap it; see
GlyphSource::snap_size.
Implementations§
Source§impl TextStyle
impl TextStyle
Trait Implementations§
impl Copy for TextStyle
impl Eq for TextStyle
impl StructuralPartialEq for TextStyle
Auto Trait Implementations§
impl Freeze for TextStyle
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnsafeUnpin for TextStyle
impl UnwindSafe for TextStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more