pub struct Subtable2<'a> {
sub_header_keys: LazyArray16<'a, u16>,
sub_headers_offset: usize,
sub_headers: LazyArray16<'a, SubHeaderRecord>,
data: &'a [u8],
}
Expand description
A format 2 subtable.
Fields§
§sub_header_keys: LazyArray16<'a, u16>
§sub_headers_offset: usize
§sub_headers: LazyArray16<'a, SubHeaderRecord>
§data: &'a [u8]
Implementations§
source§impl<'a> Subtable2<'a>
impl<'a> Subtable2<'a>
sourcepub fn glyph_index(&self, code_point: u32) -> Option<GlyphId>
pub fn glyph_index(&self, code_point: u32) -> Option<GlyphId>
Returns a glyph index for a code point.
Returns None
when code_point
is larger than u16
.
sourcepub fn codepoints(&self, f: impl FnMut(u32))
pub fn codepoints(&self, f: impl FnMut(u32))
Calls f
for each codepoint defined in this table.
fn codepoints_inner(&self, f: impl FnMut(u32)) -> Option<()>
Trait Implementations§
impl<'a> Copy for Subtable2<'a>
Auto Trait Implementations§
impl<'a> Freeze for Subtable2<'a>
impl<'a> RefUnwindSafe for Subtable2<'a>
impl<'a> Send for Subtable2<'a>
impl<'a> Sync for Subtable2<'a>
impl<'a> Unpin for Subtable2<'a>
impl<'a> UnwindSafe for Subtable2<'a>
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