pub struct FaceAttributes {
pub italic: bool,
pub weight: u16,
}Expand description
The slope and weight a face is matched at: the two axes of CSS font matching the engine supports.
Fields§
§italic: boolTrue for both italic and oblique cuts; the engine draws no distinction a book needs.
weight: u16Weight on the CSS 1–1000 scale.
Implementations§
Source§impl FaceAttributes
impl FaceAttributes
Sourcepub const REGULAR: FaceAttributes
pub const REGULAR: FaceAttributes
Upright, regular: what a face is when nothing says otherwise.
Trait Implementations§
Source§impl Clone for FaceAttributes
impl Clone for FaceAttributes
Source§fn clone(&self) -> FaceAttributes
fn clone(&self) -> FaceAttributes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FaceAttributes
Source§impl Debug for FaceAttributes
impl Debug for FaceAttributes
Source§impl<'de> Deserialize<'de> for FaceAttributes
impl<'de> Deserialize<'de> for FaceAttributes
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FaceAttributes
Source§impl PartialEq for FaceAttributes
impl PartialEq for FaceAttributes
Source§impl Serialize for FaceAttributes
impl Serialize for FaceAttributes
impl StructuralPartialEq for FaceAttributes
Auto Trait Implementations§
impl Freeze for FaceAttributes
impl RefUnwindSafe for FaceAttributes
impl Send for FaceAttributes
impl Sync for FaceAttributes
impl Unpin for FaceAttributes
impl UnsafeUnpin for FaceAttributes
impl UnwindSafe for FaceAttributes
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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.