pub struct PdfTextGap {
pub char_index: usize,
pub width_pt: f64,
}Expand description
A word gap the walker synthesised as a space in PdfTextIsland::text: PDF text from TeX and
similar producers has no space glyphs, only TJ adjustments or position moves.
Fields§
§char_index: usizeIndex (in chars) of the synthesised space inside text. Every other character of
text is a real glyph.
width_pt: f64Device-space width of the gap in points: the pen distance between the neighbouring glyphs
beyond what Tc already adds.
Trait Implementations§
Source§impl Clone for PdfTextGap
impl Clone for PdfTextGap
impl Copy for PdfTextGap
Source§impl Debug for PdfTextGap
impl Debug for PdfTextGap
Source§impl PartialEq for PdfTextGap
impl PartialEq for PdfTextGap
Source§impl Serialize for PdfTextGap
impl Serialize for PdfTextGap
impl StructuralPartialEq for PdfTextGap
Auto Trait Implementations§
impl Freeze for PdfTextGap
impl RefUnwindSafe for PdfTextGap
impl Send for PdfTextGap
impl Sync for PdfTextGap
impl Unpin for PdfTextGap
impl UnsafeUnpin for PdfTextGap
impl UnwindSafe for PdfTextGap
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.