pub enum CmapSubtable {
Format0(Cmap0),
Format2(Cmap2),
Format4(Cmap4),
Format6(Cmap6),
Format8(Cmap8),
Format10(Cmap10),
Format12(Cmap12),
Format13(Cmap13),
Format14(Cmap14),
}
Expand description
The different cmap subtable formats.
Variants§
Format0(Cmap0)
Format2(Cmap2)
Format4(Cmap4)
Format6(Cmap6)
Format8(Cmap8)
Format10(Cmap10)
Format12(Cmap12)
Format13(Cmap13)
Format14(Cmap14)
Implementations§
Source§impl CmapSubtable
impl CmapSubtable
Sourcepub fn format_2(length: u16, language: u16, sub_header_keys: Vec<u16>) -> Self
pub fn format_2(length: u16, language: u16, sub_header_keys: Vec<u16>) -> Self
Construct a new Cmap2
subtable
Sourcepub fn format_4(
language: u16,
end_code: Vec<u16>,
start_code: Vec<u16>,
id_delta: Vec<i16>,
id_range_offsets: Vec<u16>,
glyph_id_array: Vec<u16>,
) -> Self
pub fn format_4( language: u16, end_code: Vec<u16>, start_code: Vec<u16>, id_delta: Vec<i16>, id_range_offsets: Vec<u16>, glyph_id_array: Vec<u16>, ) -> Self
Construct a new Cmap4
subtable
Sourcepub fn format_6(
length: u16,
language: u16,
first_code: u16,
entry_count: u16,
glyph_id_array: Vec<u16>,
) -> Self
pub fn format_6( length: u16, language: u16, first_code: u16, entry_count: u16, glyph_id_array: Vec<u16>, ) -> Self
Construct a new Cmap6
subtable
Sourcepub fn format_8(
length: u32,
language: u32,
is32: Vec<u8>,
num_groups: u32,
groups: Vec<SequentialMapGroup>,
) -> Self
pub fn format_8( length: u32, language: u32, is32: Vec<u8>, num_groups: u32, groups: Vec<SequentialMapGroup>, ) -> Self
Construct a new Cmap8
subtable
Sourcepub fn format_10(
length: u32,
language: u32,
start_char_code: u32,
glyph_id_array: Vec<u16>,
) -> Self
pub fn format_10( length: u32, language: u32, start_char_code: u32, glyph_id_array: Vec<u16>, ) -> Self
Construct a new Cmap10
subtable
Sourcepub fn format_12(language: u32, groups: Vec<SequentialMapGroup>) -> Self
pub fn format_12(language: u32, groups: Vec<SequentialMapGroup>) -> Self
Construct a new Cmap12
subtable
Trait Implementations§
Source§impl Clone for CmapSubtable
impl Clone for CmapSubtable
Source§fn clone(&self) -> CmapSubtable
fn clone(&self) -> CmapSubtable
Returns a duplicate 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 CmapSubtable
impl Debug for CmapSubtable
Source§impl Default for CmapSubtable
impl Default for CmapSubtable
Source§impl<'de> Deserialize<'de> for CmapSubtable
impl<'de> Deserialize<'de> for CmapSubtable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> FontRead<'a> for CmapSubtable
impl<'a> FontRead<'a> for CmapSubtable
Source§impl FontWrite for CmapSubtable
impl FontWrite for CmapSubtable
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.
Source§fn table_type(&self) -> TableType
fn table_type(&self) -> TableType
The type of this table. Read more
Source§impl From<Cmap0> for CmapSubtable
impl From<Cmap0> for CmapSubtable
Source§fn from(src: Cmap0) -> CmapSubtable
fn from(src: Cmap0) -> CmapSubtable
Converts to this type from the input type.
Source§impl From<Cmap10> for CmapSubtable
impl From<Cmap10> for CmapSubtable
Source§fn from(src: Cmap10) -> CmapSubtable
fn from(src: Cmap10) -> CmapSubtable
Converts to this type from the input type.
Source§impl From<Cmap12> for CmapSubtable
impl From<Cmap12> for CmapSubtable
Source§fn from(src: Cmap12) -> CmapSubtable
fn from(src: Cmap12) -> CmapSubtable
Converts to this type from the input type.
Source§impl From<Cmap13> for CmapSubtable
impl From<Cmap13> for CmapSubtable
Source§fn from(src: Cmap13) -> CmapSubtable
fn from(src: Cmap13) -> CmapSubtable
Converts to this type from the input type.
Source§impl From<Cmap14> for CmapSubtable
impl From<Cmap14> for CmapSubtable
Source§fn from(src: Cmap14) -> CmapSubtable
fn from(src: Cmap14) -> CmapSubtable
Converts to this type from the input type.
Source§impl From<Cmap2> for CmapSubtable
impl From<Cmap2> for CmapSubtable
Source§fn from(src: Cmap2) -> CmapSubtable
fn from(src: Cmap2) -> CmapSubtable
Converts to this type from the input type.
Source§impl From<Cmap4> for CmapSubtable
impl From<Cmap4> for CmapSubtable
Source§fn from(src: Cmap4) -> CmapSubtable
fn from(src: Cmap4) -> CmapSubtable
Converts to this type from the input type.
Source§impl From<Cmap6> for CmapSubtable
impl From<Cmap6> for CmapSubtable
Source§fn from(src: Cmap6) -> CmapSubtable
fn from(src: Cmap6) -> CmapSubtable
Converts to this type from the input type.
Source§impl From<Cmap8> for CmapSubtable
impl From<Cmap8> for CmapSubtable
Source§fn from(src: Cmap8) -> CmapSubtable
fn from(src: Cmap8) -> CmapSubtable
Converts to this type from the input type.
Source§impl FromObjRef<CmapSubtable<'_>> for CmapSubtable
impl FromObjRef<CmapSubtable<'_>> for CmapSubtable
Source§fn from_obj_ref(obj: &CmapSubtable<'_>, _: FontData<'_>) -> Self
fn from_obj_ref(obj: &CmapSubtable<'_>, _: FontData<'_>) -> Self
Convert
from
to an instance of Self
, using the provided data to resolve offsets.Source§impl FromTableRef<CmapSubtable<'_>> for CmapSubtable
impl FromTableRef<CmapSubtable<'_>> for CmapSubtable
fn from_table_ref(from: &T) -> Self
Source§impl Hash for CmapSubtable
impl Hash for CmapSubtable
Source§impl Ord for CmapSubtable
impl Ord for CmapSubtable
Source§fn cmp(&self, other: &CmapSubtable) -> Ordering
fn cmp(&self, other: &CmapSubtable) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CmapSubtable
impl PartialEq for CmapSubtable
Source§impl PartialOrd for CmapSubtable
impl PartialOrd for CmapSubtable
Source§impl Serialize for CmapSubtable
impl Serialize for CmapSubtable
Source§impl Validate for CmapSubtable
impl Validate for CmapSubtable
Source§fn validate_impl(&self, ctx: &mut ValidationCtx)
fn validate_impl(&self, ctx: &mut ValidationCtx)
Validate this table. Read more
impl Eq for CmapSubtable
impl StructuralPartialEq for CmapSubtable
Auto Trait Implementations§
impl Freeze for CmapSubtable
impl RefUnwindSafe for CmapSubtable
impl Send for CmapSubtable
impl Sync for CmapSubtable
impl Unpin for CmapSubtable
impl UnwindSafe for CmapSubtable
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<'a, T> FontReadWithArgs<'a> for Twhere
T: FontRead<'a>,
impl<'a, T> FontReadWithArgs<'a> for Twhere
T: FontRead<'a>,
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.