pub enum GlyphArea {
Anywhere,
Within(Rect),
}Expand description
Where a page’s glyphs may land, in its scene’s coordinates.
Variants§
Anywhere
Every glyph is drawn.
Within(Rect)
A glyph is drawn only if the centre of its box (its advance across, ascent to descent down) lies inside: a page’s clip hides what falls outside it, but a PDF’s text layer does not, so a glyph under the clip would still be found, selected and copied from the wrong page. The centre decides so each glyph belongs to exactly one of two pages that share an edge.
Trait Implementations§
impl Copy for GlyphArea
impl StructuralPartialEq for GlyphArea
Auto Trait Implementations§
impl Freeze for GlyphArea
impl RefUnwindSafe for GlyphArea
impl Send for GlyphArea
impl Sync for GlyphArea
impl Unpin for GlyphArea
impl UnsafeUnpin for GlyphArea
impl UnwindSafe for GlyphArea
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<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.