pub struct CmapIterLimits {
pub max_char: u32,
pub glyph_count: u32,
}
Expand description
Character and glyph limits for iterating format 12 and 13 subtables.
Fields§
§max_char: u32
The maximum valid character.
glyph_count: u32
The number of glyphs in the font.
Implementations§
Source§impl CmapIterLimits
impl CmapIterLimits
Sourcepub fn default_for_font(font: &FontRef<'_>) -> Self
pub fn default_for_font(font: &FontRef<'_>) -> Self
Returns the default limits for the given font.
This will limit pairs to char::MAX
and the number of glyphs contained
in the font. If the font is missing a maxp
table, the number of
glyphs will be limited to u16::MAX
.
Trait Implementations§
Source§impl Clone for CmapIterLimits
impl Clone for CmapIterLimits
Source§fn clone(&self) -> CmapIterLimits
fn clone(&self) -> CmapIterLimits
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CmapIterLimits
impl Debug for CmapIterLimits
Source§impl Default for CmapIterLimits
impl Default for CmapIterLimits
impl Copy for CmapIterLimits
Auto Trait Implementations§
impl Freeze for CmapIterLimits
impl RefUnwindSafe for CmapIterLimits
impl Send for CmapIterLimits
impl Sync for CmapIterLimits
impl Unpin for CmapIterLimits
impl UnwindSafe for CmapIterLimits
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