pub struct FontFeature {
pub tag: String,
pub value: u32,
}Expand description
An OpenType feature tag toggle, e.g. "liga" on, "tnum" on.
tag is the 4-byte OpenType feature tag; value is the feature selector
(0 = off, 1 = on, or a stylistic-set index).
Fields§
§tag: StringThe 4-character OpenType feature tag (e.g. "liga", "smcp", "ss01").
value: u32The feature value (0 = off, 1 = on, or an index for alternates).
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 (const: unstable) · 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
Source§fn eq(&self, other: &FontFeature) -> bool
fn eq(&self, other: &FontFeature) -> bool
Tests for
self and other values to be equal, and is used by ==.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