pub enum FontMatchKind {
Missing,
Fallback,
Widths,
OtherVersion,
MetricStandIn,
ExactStandIn,
Native,
}Expand description
How a font family requested by the document was resolved for rendering.
Ordered from highest severity (Missing) to lowest (Native) so sorting puts actionable
font issues first.
Variants§
Missing
No usable face was available (text or font marks were omitted).
Fallback
Fell back to another family because neither the requested family nor a metric stand-in was available.
Widths
Substituted with an unverified or approximate width-compatible font whose line breaks may still differ.
OtherVersion
Substituted with a metric stand-in made for a different version of the requested family.
MetricStandIn
Substituted with a verified metric-compatible stand-in whose advance widths and line metrics match the requested family and target version.
ExactStandIn
Substituted with an exact layout stand-in for the requested family and target version.
Native
Rendered with the requested family’s own native face.
Implementations§
Trait Implementations§
Source§impl Clone for FontMatchKind
impl Clone for FontMatchKind
impl Copy for FontMatchKind
Source§impl Debug for FontMatchKind
impl Debug for FontMatchKind
impl Eq for FontMatchKind
Source§impl Hash for FontMatchKind
impl Hash for FontMatchKind
Source§impl Ord for FontMatchKind
impl Ord for FontMatchKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for FontMatchKind
impl PartialEq for FontMatchKind
Source§impl PartialOrd for FontMatchKind
impl PartialOrd for FontMatchKind
impl StructuralPartialEq for FontMatchKind
Auto Trait Implementations§
impl Forget for FontMatchKind
impl Freeze for FontMatchKind
impl Move for FontMatchKind
impl RefUnwindSafe for FontMatchKind
impl Send for FontMatchKind
impl Sync for FontMatchKind
impl Unpin for FontMatchKind
impl UnsafeUnpin for FontMatchKind
impl UnwindSafe for FontMatchKind
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
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
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
T, using the provided data to resolve any offsets.