pub struct FontCMapGaps {
pub font: String,
pub codes: u32,
pub interpolated: u32,
pub unmapped: u32,
}Expand description
A font whose ToUnicode CMap (or, for a font without one, the embedded program’s own cmap table) had no entry for some of the codes the document shows through it, and what became of those codes.
A CMap written for some of a font’s glyphs but not all of them loses the
others’ letters from the text. A code without an entry is read from the
mapped codes around it when they spell it out — a CMap mapping code 36
to A and code 38 to C says code 37 is B, for a run of digits or of
letters of one case whose glyph order follows the alphabet — and is a
U+FFFD in the text otherwise, so the loss stays visible. The counts let
a caller weigh text read from such a font: codes - interpolated - unmapped of its codes had an entry.
Fields§
§font: StringThe font’s /BaseFont name, or its resource name when it has none
or an empty one.
codes: u32Codes shown through the font’s CMap, repeats included: two-byte codes, or the bytes of a single-byte CMap.
interpolated: u32Codes without an entry that were read from the mapped codes around them.
unmapped: u32Codes without an entry that could not be read; each is a U+FFFD in the text.
Trait Implementations§
Source§impl Clone for FontCMapGaps
impl Clone for FontCMapGaps
Source§impl Debug for FontCMapGaps
impl Debug for FontCMapGaps
impl Eq for FontCMapGaps
Source§impl PartialEq for FontCMapGaps
impl PartialEq for FontCMapGaps
impl StructuralPartialEq for FontCMapGaps
Auto Trait Implementations§
impl Freeze for FontCMapGaps
impl RefUnwindSafe for FontCMapGaps
impl Send for FontCMapGaps
impl Sync for FontCMapGaps
impl Unpin for FontCMapGaps
impl UnsafeUnpin for FontCMapGaps
impl UnwindSafe for FontCMapGaps
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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 more