pub struct FontFeature {
pub tag: [u8; 4],
pub value: u32,
}Expand description
A single OpenType feature tag + value.
Tags are 4-byte ASCII identifiers (e.g., b"liga", b"kern", b"smcp").
Value 0 disables the feature, 1 enables it, higher values select alternates.
Fields§
§tag: [u8; 4]OpenType tag (4 ASCII bytes, e.g., *b"liga").
value: u32Feature value (0 = off, 1 = on, >1 = alternate selection).
Implementations§
Trait Implementations§
Source§impl Clone for FontFeature
impl Clone for FontFeature
Source§fn clone(&self) -> FontFeature
fn clone(&self) -> FontFeature
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 FontFeature
impl Debug for FontFeature
Source§impl Hash for FontFeature
impl Hash for FontFeature
Source§impl PartialEq for FontFeature
impl PartialEq for FontFeature
impl Copy for FontFeature
impl Eq for FontFeature
impl StructuralPartialEq for FontFeature
Auto Trait Implementations§
impl Freeze for FontFeature
impl RefUnwindSafe for FontFeature
impl Send for FontFeature
impl Sync for FontFeature
impl Unpin for FontFeature
impl UnsafeUnpin for FontFeature
impl UnwindSafe for FontFeature
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> 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.