[−][src]Struct allsorts::gpos::Info
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: i16
An offset from the horizontal glyph advance position for this glyph.
placement: Placement
When not Placement::None
indicates that this glyph should be placed according to
the variant.
mark_placement: MarkPlacement
When not MarkPlacement::None
indicates that this glyph is a mark with placement
indicated by the variant.
Implementations
impl Info
[src]
pub fn init_from_glyphs(
opt_gdef_table: Option<&GDEFTable>,
glyphs: Vec<RawGlyph<()>>
) -> Vec<Info>
[src]
opt_gdef_table: Option<&GDEFTable>,
glyphs: Vec<RawGlyph<()>>
) -> Vec<Info>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Info
[src]
impl Send for Info
[src]
impl Sync for Info
[src]
impl Unpin for Info
[src]
impl UnwindSafe for Info
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,