pub struct Info {
pub glyph: RawGlyph<()>,
pub kerning: i16,
pub placement: Placement,
/* private fields */
}Expand description
A positioned glyph.
This struct is the output of applying glyph positioning (gpos). It contains the glyph
and information about how it should be positioned.
For more information about glyph placement refer to the OpenType documentation: https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#positioning-glyphs-with-opentype
Fields§
§glyph: RawGlyph<()>The glyph.
kerning: i16An offset from the horizontal glyph advance position for this glyph.
placement: PlacementWhen not Placement::None indicates that this glyph should be placed according to
the variant.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnwindSafe for Info
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more