pub struct Cmap12IterLimits {
pub max_char: u32,
pub glyph_count: u32,
}
Expand description
Character and glyph limits for iterating format 12 subtables.
Fields§
§max_char: u32
The maximum valid character.
glyph_count: u32
The number of glyphs in the font.
Implementations§
Source§impl Cmap12IterLimits
impl Cmap12IterLimits
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 Cmap12IterLimits
impl Clone for Cmap12IterLimits
Source§fn clone(&self) -> Cmap12IterLimits
fn clone(&self) -> Cmap12IterLimits
Returns a copy 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 Cmap12IterLimits
impl Debug for Cmap12IterLimits
Source§impl Default for Cmap12IterLimits
impl Default for Cmap12IterLimits
impl Copy for Cmap12IterLimits
Auto Trait Implementations§
impl Freeze for Cmap12IterLimits
impl RefUnwindSafe for Cmap12IterLimits
impl Send for Cmap12IterLimits
impl Sync for Cmap12IterLimits
impl Unpin for Cmap12IterLimits
impl UnwindSafe for Cmap12IterLimits
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