pub struct PositionedGlyph {Show 13 fields
pub page: u32,
pub unicode: String,
pub cid: u32,
pub origin: (f64, f64),
pub quad: [f64; 8],
pub source: GlyphSourceAddress,
pub font_id: String,
pub font_size: f64,
pub pen_advance: f64,
pub text_matrix: Matrix,
pub ctm: Matrix,
pub writing_direction: WritingDirection,
pub paint: PaintState,
}Expand description
One glyph positioned in both PDF user-space (via text_matrix/ctm) and device space (via
quad), as produced by visit_text_show (§5.2) and consumed by §5.3’s may_join grouping and
painted-bounds inventory.
Fields§
§page: u32§unicode: String§cid: u32§origin: (f64, f64)Device-space origin: ctm.transform(text_matrix.origin()).
quad: [f64; 8]Device-space glyph quad, four corners as [x0,y0, x1,y1, x2,y2, x3,y3].
source: GlyphSourceAddress§font_id: String§font_size: f64§pen_advance: f64Text-space distance the pen moved after this glyph, before horizontal scaling: the font’s
advance plus Tc (plus Tw for single-byte code 32). A removed glyph is replaced by the
TJ number that moves the pen by exactly this.
text_matrix: Matrix§ctm: Matrix§writing_direction: WritingDirection§paint: PaintStateTrait Implementations§
Source§impl Clone for PositionedGlyph
impl Clone for PositionedGlyph
Auto Trait Implementations§
impl Freeze for PositionedGlyph
impl RefUnwindSafe for PositionedGlyph
impl Send for PositionedGlyph
impl Sync for PositionedGlyph
impl Unpin for PositionedGlyph
impl UnsafeUnpin for PositionedGlyph
impl UnwindSafe for PositionedGlyph
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.