pub struct Subset {
pub bytes: Vec<u8>,
pub glyph_map: Vec<u16>,
pub format: EmbeddingFormat,
}Expand description
A compact font and its original-glyph to subset-glyph mapping.
Fields§
§bytes: Vec<u8>§glyph_map: Vec<u16>Absent glyphs use crate::MISSING_GLYPH_REMAP.
format: EmbeddingFormatTrait Implementations§
impl Eq for Subset
impl StructuralPartialEq for Subset
Auto Trait Implementations§
impl Freeze for Subset
impl RefUnwindSafe for Subset
impl Send for Subset
impl Sync for Subset
impl Unpin for Subset
impl UnsafeUnpin for Subset
impl UnwindSafe for Subset
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