ttf_view/tables/cmap/
format0.rs1use crate::tables::cmap::GlyphId;
2
3#[repr(C)]
4pub struct CmapSubtableFormat0Repr {
5 pub glyph_id_array: [u8; 256],
6}
7
8impl CmapSubtableFormat0Repr {
9 pub const fn map(&self, codepoint: u8) -> GlyphId {
10 self.glyph_id_array[codepoint as usize].into()
11 }
12}