pub struct GlyphRun {
pub origin: Point,
pub font_id: FontId,
pub font_size: f64,
pub glyph_ids: Vec<u16>,
pub advances: Vec<f64>,
pub text: String,
pub color: Color,
pub bold: bool,
pub italic: bool,
pub field_kind: Option<FieldKind>,
pub footnote_id: Option<i32>,
}Expand description
A positioned run of shaped glyphs.
Fields§
§origin: PointBaseline origin of the first glyph (in points).
font_id: FontIdFont identifier (from FontManager).
font_size: f64Font size in points.
glyph_ids: Vec<u16>Shaped glyph IDs.
advances: Vec<f64>Per-glyph advances in points.
text: StringOriginal text (for PDF ToUnicode mapping).
color: ColorText color.
bold: boolWhether the font is bold.
italic: boolWhether the font is italic.
field_kind: Option<FieldKind>If this glyph run is a field placeholder, the kind of field.
footnote_id: Option<i32>If this glyph run is a footnote/endnote reference marker, its ID.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GlyphRun
impl RefUnwindSafe for GlyphRun
impl Send for GlyphRun
impl Sync for GlyphRun
impl Unpin for GlyphRun
impl UnsafeUnpin for GlyphRun
impl UnwindSafe for GlyphRun
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