pub(crate) struct StyleClass {
pub name: &'static str,
pub index: usize,
pub script: &'static ScriptClass,
pub feature: Option<Tag>,
}Expand description
Defines the basic properties for each style supported by the autohinter.
There’s mostly a 1:1 correspondence between styles and scripts except in the cases where style coverage is determined by OpenType feature coverage.
Fields§
§name: &'static str§index: usizeIndex of self in the STYLE_CLASSES array.
script: &'static ScriptClassAssociated Unicode script.
feature: Option<Tag>OpenType feature tag for styles that derive coverage from layout tables.
Implementations§
Source§impl StyleClass
impl StyleClass
pub(crate) fn from_index(index: u16) -> Option<&'static StyleClass>
Source§impl StyleClass
impl StyleClass
pub const ADLM: usize = 0
pub const ARAB: usize = 1
pub const ARMN: usize = 2
pub const AVST: usize = 3
pub const BAMU: usize = 4
pub const BENG: usize = 5
pub const BUHD: usize = 6
pub const CAKM: usize = 7
pub const CANS: usize = 8
pub const CARI: usize = 9
pub const CHER: usize = 10
pub const COPT: usize = 11
pub const CPRT: usize = 12
pub const CYRL_C2CP: usize = 13
pub const CYRL_C2SC: usize = 14
pub const CYRL_ORDN: usize = 15
pub const CYRL_PCAP: usize = 16
pub const CYRL_RUBY: usize = 17
pub const CYRL_SINF: usize = 18
pub const CYRL_SMCP: usize = 19
pub const CYRL_SUBS: usize = 20
pub const CYRL_SUPS: usize = 21
pub const CYRL_TITL: usize = 22
pub const CYRL: usize = 23
pub const DEVA: usize = 24
pub const DSRT: usize = 25
pub const ETHI: usize = 26
pub const GEOR: usize = 27
pub const GEOK: usize = 28
pub const GLAG: usize = 29
pub const GOTH: usize = 30
pub const GREK_C2CP: usize = 31
pub const GREK_C2SC: usize = 32
pub const GREK_ORDN: usize = 33
pub const GREK_PCAP: usize = 34
pub const GREK_RUBY: usize = 35
pub const GREK_SINF: usize = 36
pub const GREK_SMCP: usize = 37
pub const GREK_SUBS: usize = 38
pub const GREK_SUPS: usize = 39
pub const GREK_TITL: usize = 40
pub const GREK: usize = 41
pub const GUJR: usize = 42
pub const GURU: usize = 43
pub const HEBR: usize = 44
pub const KALI: usize = 45
pub const KHMR: usize = 46
pub const KHMS: usize = 47
pub const KNDA: usize = 48
pub const LAOO: usize = 49
pub const LATN_C2CP: usize = 50
pub const LATN_C2SC: usize = 51
pub const LATN_ORDN: usize = 52
pub const LATN_PCAP: usize = 53
pub const LATN_RUBY: usize = 54
pub const LATN_SINF: usize = 55
pub const LATN_SMCP: usize = 56
pub const LATN_SUBS: usize = 57
pub const LATN_SUPS: usize = 58
pub const LATN_TITL: usize = 59
pub const LATN: usize = 60
pub const LATB: usize = 61
pub const LATP: usize = 62
pub const LISU: usize = 63
pub const MLYM: usize = 64
pub const MEDF: usize = 65
pub const MONG: usize = 66
pub const MYMR: usize = 67
pub const NKOO: usize = 68
pub const NONE: usize = 69
pub const OLCK: usize = 70
pub const ORKH: usize = 71
pub const OSGE: usize = 72
pub const OSMA: usize = 73
pub const ROHG: usize = 74
pub const SAUR: usize = 75
pub const SHAW: usize = 76
pub const SINH: usize = 77
pub const SUND: usize = 78
pub const TAML: usize = 79
pub const TAVT: usize = 80
pub const TELU: usize = 81
pub const TFNG: usize = 82
pub const THAI: usize = 83
pub const VAII: usize = 84
pub const LIMB: usize = 85
pub const ORYA: usize = 86
pub const SYLO: usize = 87
pub const TIBT: usize = 88
pub const HANI: usize = 89
Trait Implementations§
Source§impl Clone for StyleClass
impl Clone for StyleClass
Source§fn clone(&self) -> StyleClass
fn clone(&self) -> StyleClass
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 moreAuto Trait Implementations§
impl Freeze for StyleClass
impl RefUnwindSafe for StyleClass
impl Send for StyleClass
impl Sync for StyleClass
impl Unpin for StyleClass
impl UnsafeUnpin for StyleClass
impl UnwindSafe for StyleClass
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