Struct write_fonts::tables::cmap::Cmap
source · pub struct Cmap {
pub encoding_records: Vec<EncodingRecord>,
}Expand description
Fields§
§encoding_records: Vec<EncodingRecord>Implementations§
source§impl Cmap
impl Cmap
sourcepub fn from_mappings(
mappings: impl IntoIterator<Item = (char, GlyphId)>
) -> Cmap
pub fn from_mappings( mappings: impl IntoIterator<Item = (char, GlyphId)> ) -> Cmap
Trait Implementations§
source§impl FontWrite for Cmap
impl FontWrite for Cmap
source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Write our data and information about offsets into this TableWriter.
Auto Trait Implementations§
impl RefUnwindSafe for Cmap
impl Send for Cmap
impl Sync for Cmap
impl Unpin for Cmap
impl UnwindSafe for Cmap
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
source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere U: FromObjRef<T>,
source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.