Struct write_fonts::tables::cmap::EncodingRecord
source · pub struct EncodingRecord {
pub platform_id: PlatformId,
pub encoding_id: u16,
pub subtable: OffsetMarker<CmapSubtable, WIDTH_32>,
}Expand description
Fields§
§platform_id: PlatformIdPlatform ID.
encoding_id: u16Platform-specific encoding ID.
subtable: OffsetMarker<CmapSubtable, WIDTH_32>Byte offset from beginning of table to the subtable for this encoding.
Implementations§
source§impl EncodingRecord
impl EncodingRecord
sourcepub fn new(
platform_id: PlatformId,
encoding_id: u16,
subtable: CmapSubtable
) -> Self
pub fn new( platform_id: PlatformId, encoding_id: u16, subtable: CmapSubtable ) -> Self
Construct a new EncodingRecord
Trait Implementations§
source§impl Clone for EncodingRecord
impl Clone for EncodingRecord
source§fn clone(&self) -> EncodingRecord
fn clone(&self) -> EncodingRecord
Returns a copy 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 EncodingRecord
impl Debug for EncodingRecord
source§impl Default for EncodingRecord
impl Default for EncodingRecord
source§fn default() -> EncodingRecord
fn default() -> EncodingRecord
Returns the “default value” for a type. Read more
source§impl FontWrite for EncodingRecord
impl FontWrite for EncodingRecord
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.
fn name(&self) -> &'static str
source§impl FromObjRef<EncodingRecord> for EncodingRecord
impl FromObjRef<EncodingRecord> for EncodingRecord
source§fn from_obj_ref(obj: &EncodingRecord, offset_data: FontData<'_>) -> Self
fn from_obj_ref(obj: &EncodingRecord, offset_data: FontData<'_>) -> Self
Convert
from to an instance of Self, using the provided data to resolve offsets.source§impl Validate for EncodingRecord
impl Validate for EncodingRecord
source§fn validate_impl(&self, ctx: &mut ValidationCtx)
fn validate_impl(&self, ctx: &mut ValidationCtx)
Validate this table. Read more
Auto Trait Implementations§
impl RefUnwindSafe for EncodingRecord
impl Send for EncodingRecord
impl Sync for EncodingRecord
impl Unpin for EncodingRecord
impl UnwindSafe for EncodingRecord
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.