pub struct Font {
pub color: Color,
pub font_family: FontFamily,
pub font_size: f64,
}
Expand description
Fields
color: Color
font_family: FontFamily
font_size: f64
Implementations
sourceimpl Font
impl Font
sourcepub fn text_layout(&self, text: impl TextStorage) -> PietTextLayout
pub fn text_layout(&self, text: impl TextStorage) -> PietTextLayout
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more