pub struct MathVariantGlyph {
pub gid: u16,
pub advance: Length,
pub height: Length,
pub depth: Length,
}Expand description
One selected vertical variant with real per-glyph ink metrics at size
(fontFormat.ml:2257 get_math_glyph_metrics: hgt = max(0, ymax),
dpt = -min(0, ymin), both from the variant glyph’s own outline bbox).
Fields§
§gid: u16Raw font glyph id — NOT necessarily cmap-reachable (variant glyphs
like summation.v1 typically have no cmap entry at all); the CID
writer emits this directly as an Identity-H content byte pair rather
than re-deriving it from a character.
advance: Length§height: Length§depth: LengthTrait Implementations§
Source§impl Clone for MathVariantGlyph
impl Clone for MathVariantGlyph
Source§fn clone(&self) -> MathVariantGlyph
fn clone(&self) -> MathVariantGlyph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MathVariantGlyph
Source§impl Debug for MathVariantGlyph
impl Debug for MathVariantGlyph
Source§impl PartialEq for MathVariantGlyph
impl PartialEq for MathVariantGlyph
impl StructuralPartialEq for MathVariantGlyph
Auto Trait Implementations§
impl Freeze for MathVariantGlyph
impl RefUnwindSafe for MathVariantGlyph
impl Send for MathVariantGlyph
impl Sync for MathVariantGlyph
impl Unpin for MathVariantGlyph
impl UnsafeUnpin for MathVariantGlyph
impl UnwindSafe for MathVariantGlyph
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