Struct write_fonts::tables::layout::RangeRecord
source · pub struct RangeRecord {
pub start_glyph_id: GlyphId,
pub end_glyph_id: GlyphId,
pub start_coverage_index: u16,
}
Expand description
Used in CoverageFormat2
Fields§
§start_glyph_id: GlyphId
First glyph ID in the range
end_glyph_id: GlyphId
Last glyph ID in the range
start_coverage_index: u16
Coverage Index of first glyph ID in range
Implementations§
source§impl RangeRecord
impl RangeRecord
source§impl RangeRecord
impl RangeRecord
sourcepub fn iter_for_glyphs(
glyphs: &[GlyphId]
) -> impl Iterator<Item = RangeRecord> + '_
pub fn iter_for_glyphs(
glyphs: &[GlyphId]
) -> impl Iterator<Item = RangeRecord> + '_
An iterator over records for this array of glyphs.
Note
this function expects that glyphs are already sorted.
Trait Implementations§
source§impl Clone for RangeRecord
impl Clone for RangeRecord
source§fn clone(&self) -> RangeRecord
fn clone(&self) -> RangeRecord
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 RangeRecord
impl Debug for RangeRecord
source§impl Default for RangeRecord
impl Default for RangeRecord
source§fn default() -> RangeRecord
fn default() -> RangeRecord
Returns the “default value” for a type. Read more
source§impl FontWrite for RangeRecord
impl FontWrite for RangeRecord
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§impl FromObjRef<RangeRecord> for RangeRecord
impl FromObjRef<RangeRecord> for RangeRecord
source§fn from_obj_ref(obj: &RangeRecord, _: FontData<'_>) -> Self
fn from_obj_ref(obj: &RangeRecord, _: FontData<'_>) -> Self
Convert
from
to an instance of Self
, using the provided data to resolve offsets.source§impl Validate for RangeRecord
impl Validate for RangeRecord
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 RangeRecord
impl Send for RangeRecord
impl Sync for RangeRecord
impl Unpin for RangeRecord
impl UnwindSafe for RangeRecord
Blanket Implementations§
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.