#[non_exhaustive]pub enum SubstituteLayout {
Widths,
Exact,
OtherVersion {
family: Name,
made_for: Name,
target: Name,
},
}Expand description
How the layout of a face that draws another family stands to that family’s layout.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Widths
A face with the family’s glyph widths at most, such as Liberation Sans for Arial, so that lines can break where the family’s do not.
Exact
An open font made from the target’s own face of the family, which has its layout.
OtherVersion
An open font made for another version of a family than the target’s own face of it.
Trait Implementations§
Source§impl Clone for SubstituteLayout
impl Clone for SubstituteLayout
Source§fn clone(&self) -> SubstituteLayout
fn clone(&self) -> SubstituteLayout
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 moreSource§impl Debug for SubstituteLayout
impl Debug for SubstituteLayout
Source§impl Default for SubstituteLayout
impl Default for SubstituteLayout
Source§fn default() -> SubstituteLayout
fn default() -> SubstituteLayout
Returns the “default value” for a type. Read more
impl Eq for SubstituteLayout
Source§impl Hash for SubstituteLayout
impl Hash for SubstituteLayout
Source§impl PartialEq for SubstituteLayout
impl PartialEq for SubstituteLayout
impl StructuralPartialEq for SubstituteLayout
Auto Trait Implementations§
impl Forget for SubstituteLayout
impl Freeze for SubstituteLayout
impl Move for SubstituteLayout
impl RefUnwindSafe for SubstituteLayout
impl Send for SubstituteLayoutwhere
RawVecInner: Send,
impl Sync for SubstituteLayoutwhere
RawVecInner: Sync,
impl Unpin for SubstituteLayout
impl UnsafeUnpin for SubstituteLayout
impl UnwindSafe for SubstituteLayoutwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§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<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§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.