pub enum GvarInputError {
UnexpectedAxisCount {
gid: GlyphId,
expected: u16,
actual: u16,
},
InconsistentGlyphAxisCount(GlyphId),
InconsistentDeltaLength(GlyphId),
InconsistentTupleLengths(GlyphId),
}
Expand description
An error representing invalid input when building a gvar table
Variants§
UnexpectedAxisCount
Glyph variations do not have the expected axis count
InconsistentGlyphAxisCount(GlyphId)
A single glyph contains variations with inconsistent axis counts
InconsistentDeltaLength(GlyphId)
A single glyph contains variations with different delta counts
InconsistentTupleLengths(GlyphId)
A variation in this glyph contains an intermediate region with a different length than the peak.
Trait Implementations§
Source§impl Clone for GvarInputError
impl Clone for GvarInputError
Source§fn clone(&self) -> GvarInputError
fn clone(&self) -> GvarInputError
Returns a duplicate of the value. Read more
1.0.0 · 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 GvarInputError
impl Debug for GvarInputError
Source§impl Display for GvarInputError
impl Display for GvarInputError
Source§impl Error for GvarInputError
impl Error for GvarInputError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for GvarInputError
impl RefUnwindSafe for GvarInputError
impl Send for GvarInputError
impl Sync for GvarInputError
impl Unpin for GvarInputError
impl UnwindSafe for GvarInputError
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,
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.