pub struct RawChar {
pub char_code: u32,
pub displacement: f64,
pub text_matrix: [f64; 6],
}Expand description
A raw character extracted from a text rendering operator.
Captures the character code and text state snapshot at the moment of rendering. Unicode mapping and precise font metrics will refine this data in later processing stages.
Fields§
§char_code: u32The character code from the PDF string byte.
displacement: f64The displacement in text space units used to advance the text position.
Calculated as: ((w0 / 1000) * font_size + char_spacing + word_spacing_if_space) * h_scaling.
text_matrix: [f64; 6]Snapshot of the text matrix at the moment this character was rendered.
Trait Implementations§
impl StructuralPartialEq for RawChar
Auto Trait Implementations§
impl Freeze for RawChar
impl RefUnwindSafe for RawChar
impl Send for RawChar
impl Sync for RawChar
impl Unpin for RawChar
impl UnsafeUnpin for RawChar
impl UnwindSafe for RawChar
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