pub struct NopVariationInfo;
Expand description
Inert variation info
Trait Implementations§
Source§impl VariationInfo for NopVariationInfo
impl VariationInfo for NopVariationInfo
Source§fn axis_count(&self) -> u16
fn axis_count(&self) -> u16
The number of axes in the fvar table
Source§fn axis(&self, _: Tag) -> Option<(usize, &Axis)>
fn axis(&self, _: Tag) -> Option<(usize, &Axis)>
If the tag is an axis in this font, it’s fvar index and it’s
Axis
data.Source§fn resolve_variable_metric(
&self,
_: &HashMap<NormalizedLocation, i16>,
) -> Result<(i16, Vec<(VariationRegion, i16)>), Self::Error>
fn resolve_variable_metric( &self, _: &HashMap<NormalizedLocation, i16>, ) -> Result<(i16, Vec<(VariationRegion, i16)>), Self::Error>
Compute default & deltas for a set of locations and values in variation space. Read more
Source§fn resolve_glyphs_number_value(
&self,
_: &str,
) -> Result<HashMap<NormalizedLocation, f64>, NopError>
fn resolve_glyphs_number_value( &self, _: &str, ) -> Result<HashMap<NormalizedLocation, f64>, NopError>
Glyphsapp only: return the [number value] for this name, if defined:
Auto Trait Implementations§
impl Freeze for NopVariationInfo
impl RefUnwindSafe for NopVariationInfo
impl Send for NopVariationInfo
impl Sync for NopVariationInfo
impl Unpin for NopVariationInfo
impl UnwindSafe for NopVariationInfo
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<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.