pub struct MathGlyph {
pub info: HorzStringInfo,
pub text: String,
pub gid: Option<u16>,
pub dx: Length,
pub dy: Length,
pub width: Length,
pub height: Length,
pub depth: Length,
}Expand description
One already-positioned glyph inside a laid-out math run: a string set in
info (font + size — a superscript carries a smaller size here), placed
at dx right of the math box’s origin and dy above its baseline
(dy < 0 = below, for subscripts). The analog of math.ml’s LowMathGlyph
after horz_of_low_math has resolved its PHGRising shift into an
offset.
Fields§
§info: HorzStringInfo§text: String§gid: Option<u16>Some(gid): a raw MATH-table variant glyph id
(push_big_char_glyph/push_delimiter_glyph), NOT necessarily
cmap-reachable from text; the CID writer emits it directly rather
than re-deriving a gid, keeping text as the ToUnicode source. None
for every ordinary cmap-driven glyph, and on every base-14 path (that
writer never reads this field).
dx: Length§dy: Length§width: Length§height: Length§depth: LengthTrait Implementations§
impl StructuralPartialEq for MathGlyph
Auto Trait Implementations§
impl Freeze for MathGlyph
impl RefUnwindSafe for MathGlyph
impl Send for MathGlyph
impl Sync for MathGlyph
impl Unpin for MathGlyph
impl UnsafeUnpin for MathGlyph
impl UnwindSafe for MathGlyph
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