pub struct Face {
pub family: Option<u16>,
pub italic: Option<bool>,
pub weight: Option<u16>,
}Expand description
The face ::first-line asks its runs for: a family, a slope and
a weight, each one set only where the rule set it.
A run of the opening line keeps what the rule left alone, so
font-style: italic over a bold emphasis picks the bold italic
rather than the regular one. The family is a face of the family
asked for, because a family is named once in the style tree and
carried here by one of its cuts.
Fields§
§family: Option<u16>A face of the family the line is set in.
italic: Option<bool>Whether the line is italic.
weight: Option<u16>Weight on the CSS 1 to 1000 scale.
Trait Implementations§
impl Copy for Face
impl StructuralPartialEq for Face
Auto Trait Implementations§
impl Freeze for Face
impl RefUnwindSafe for Face
impl Send for Face
impl Sync for Face
impl Unpin for Face
impl UnsafeUnpin for Face
impl UnwindSafe for Face
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.