pub struct Instance<'a> { /* private fields */ }
Expand description
Named instance in a variable font.
Implementations§
source§impl<'a> Instance<'a>
impl<'a> Instance<'a>
sourcepub fn name(&self, language: Option<&str>) -> Option<LocalizedString<'a>>
pub fn name(&self, language: Option<&str>) -> Option<LocalizedString<'a>>
Returns the name for the instance, optionally for a particular language.
sourcepub fn postscript_name_id(&self) -> Option<StringId>
pub fn postscript_name_id(&self) -> Option<StringId>
Returns the PostScript name identifier for the instance.
sourcepub fn postscript_name(
&self,
language: Option<&str>,
) -> Option<LocalizedString<'a>>
pub fn postscript_name( &self, language: Option<&str>, ) -> Option<LocalizedString<'a>>
Returns the PostScript name for the instance, optionally for a particular language.
sourcepub fn values(&self) -> impl Iterator<Item = f32> + 'a
pub fn values(&self) -> impl Iterator<Item = f32> + 'a
Returns an iterator over the variation values of the instance.
sourcepub fn normalized_coords(&self) -> impl Iterator<Item = NormalizedCoord> + 'a
pub fn normalized_coords(&self) -> impl Iterator<Item = NormalizedCoord> + 'a
Returns an iterator over the normalized coordinates for the instance.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Instance<'a>
impl<'a> RefUnwindSafe for Instance<'a>
impl<'a> Send for Instance<'a>
impl<'a> Sync for Instance<'a>
impl<'a> Unpin for Instance<'a>
impl<'a> UnwindSafe for Instance<'a>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)