pub type StateEntry = GenericStateEntry<()>;
Expand description
A legacy state entry used by StateTable.
Aliased Type§
struct StateEntry {
pub new_state: u16,
pub flags: u16,
pub extra: (),
}
Fields§
§new_state: u16
A new state.
flags: u16
Entry flags.
extra: ()
Additional data.
Use ()
if no data expected.
Implementations
Source§impl<T: FromData> GenericStateEntry<T>
impl<T: FromData> GenericStateEntry<T>
Sourcepub fn has_offset(&self) -> bool
pub fn has_offset(&self) -> bool
Checks that entry has an offset.
Sourcepub fn value_offset(&self) -> ValueOffset
pub fn value_offset(&self) -> ValueOffset
Returns a value offset.
Used by kern::format1 subtable.
Sourcepub fn has_advance(&self) -> bool
pub fn has_advance(&self) -> bool
If set, advance to the next glyph before going to the new state.
Trait Implementations
Source§impl<T: Clone + FromData> Clone for GenericStateEntry<T>
impl<T: Clone + FromData> Clone for GenericStateEntry<T>
Source§fn clone(&self) -> GenericStateEntry<T>
fn clone(&self) -> GenericStateEntry<T>
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 more