pub struct TextItem {
pub text: String,
pub x: f64,
pub y: f64,
pub dx: f64,
pub dy: f64,
pub width: f64,
pub size: f64,
pub font: u16,
pub invisible: bool,
}Expand description
one glyph shown on a page
Fields§
§text: Stringthe characters the glyph stands for (usually one; empty when the font does not say)
x: f64where the glyph starts on its baseline, in page space (points, y up, before /Rotate)
y: f64§dx: f64how far the glyph moves the pen, in page space (along the baseline; with character and word spacing)
dy: f64§width: f64the glyph’s own width along the baseline in page space (without the spacing)
size: f64the font size in page space
font: u16which of PageText::fonts
invisible: boolrender mode 3: drawn invisibly (the text layer of a scan)
Trait Implementations§
impl StructuralPartialEq for TextItem
Auto Trait Implementations§
impl Forget for TextItem
impl Freeze for TextItem
impl Move for TextItem
impl RefUnwindSafe for TextItem
impl Send for TextItemwhere
RawVecInner: Send,
impl Sync for TextItemwhere
RawVecInner: Sync,
impl Unpin for TextItem
impl UnsafeUnpin for TextItem
impl UnwindSafe for TextItemwhere
RawVecInner: UnwindSafe,
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