pub struct Font {
pub family: String,
pub weight: FontWeight,
pub style: FontStyle,
pub cached_face_id: Option<String>,
}
Expand description
A font face consisting of a typeface and other style properties.
Fields§
§family: String
§weight: FontWeight
§style: FontStyle
§cached_face_id: Option<String>
Implementations§
Trait Implementations§
source§impl PartialEq for Font
impl PartialEq for Font
impl Eq for Font
impl StructuralEq for Font
impl StructuralPartialEq for Font
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§
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