pub struct FontFeature {
pub tag: [u8; 4],
pub value: u32,
}Expand description
An OpenType feature: a four-letter tag and its value, 0 for off and 1 for on, or which alternate for features that have several.
Fields§
§tag: [u8; 4]The tag, such as *b"tnum".
value: u32The value.
Implementations§
Source§impl FontFeature
impl FontFeature
Sourcepub const TABULAR_NUMBERS: FontFeature
pub const TABULAR_NUMBERS: FontFeature
Digits of one width, so a clock’s width holds still (tnum).
Sourcepub const NO_LIGATURES: FontFeature
pub const NO_LIGATURES: FontFeature
No standard ligatures such as “fi” (liga off).
Sourcepub const SMALL_CAPS: FontFeature
pub const SMALL_CAPS: FontFeature
Lowercase letters as small capitals (smcp).
Sourcepub const SLASHED_ZERO: FontFeature
pub const SLASHED_ZERO: FontFeature
A zero with a slash or dot (zero).
Trait Implementations§
Source§impl Clone for FontFeature
impl Clone for FontFeature
impl Copy for FontFeature
Source§impl Debug for FontFeature
impl Debug for FontFeature
impl Eq for FontFeature
Source§impl PartialEq for FontFeature
impl PartialEq for FontFeature
impl StructuralPartialEq for FontFeature
Auto Trait Implementations§
impl Forget for FontFeature
impl Freeze for FontFeature
impl Move 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