Struct ScriptClass
pub struct ScriptClass {
pub name: &'static str,
pub group: ScriptGroup,
pub tag: Tag,
pub hint_top_to_bottom: bool,
pub std_chars: &'static str,
pub blues: &'static [(&'static str, BlueZones)],
}Expand description
Defines the basic properties for each script supported by the autohinter.
Fields§
§name: &'static strThe name of the script class.
group: ScriptGroupGroup that defines how glyphs belonging to this script are hinted.
tag: TagUnicode tag for the script.
hint_top_to_bottom: boolTrue if outline edges are processed top to bottom.
std_chars: &'static strCharacters used to define standard width and height of stems.
blues: &'static [(&'static str, BlueZones)]“Blue” characters used to define alignment zones.
Implementations§
§impl ScriptClass
impl ScriptClass
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: usize = 13
pub const DEVA: usize = 14
pub const DSRT: usize = 15
pub const ETHI: usize = 16
pub const GEOR: usize = 17
pub const GEOK: usize = 18
pub const GLAG: usize = 19
pub const GOTH: usize = 20
pub const GREK: usize = 21
pub const GUJR: usize = 22
pub const GURU: usize = 23
pub const HEBR: usize = 24
pub const HMNP: usize = 25
pub const KALI: usize = 26
pub const KHMR: usize = 27
pub const KHMS: usize = 28
pub const KNDA: usize = 29
pub const LAOO: usize = 30
pub const LATN: usize = 31
pub const LATB: usize = 32
pub const LATP: usize = 33
pub const LISU: usize = 34
pub const MLYM: usize = 35
pub const MEDF: usize = 36
pub const MONG: usize = 37
pub const MYMR: usize = 38
pub const NKOO: usize = 39
pub const NONE: usize = 40
pub const OLCK: usize = 41
pub const ORKH: usize = 42
pub const OSGE: usize = 43
pub const OSMA: usize = 44
pub const ROHG: usize = 45
pub const SAUR: usize = 46
pub const SHAW: usize = 47
pub const SINH: usize = 48
pub const SUND: usize = 49
pub const TAML: usize = 50
pub const TAVT: usize = 51
pub const TELU: usize = 52
pub const TFNG: usize = 53
pub const THAI: usize = 54
pub const VAII: usize = 55
pub const LIMB: usize = 56
pub const ORYA: usize = 57
pub const SYLO: usize = 58
pub const TIBT: usize = 59
pub const HANI: usize = 60
Trait Implementations§
§impl Clone for ScriptClass
impl Clone for ScriptClass
§fn clone(&self) -> ScriptClass
fn clone(&self) -> ScriptClass
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 moreAuto Trait Implementations§
impl Freeze for ScriptClass
impl RefUnwindSafe for ScriptClass
impl Send for ScriptClass
impl Sync for ScriptClass
impl Unpin for ScriptClass
impl UnsafeUnpin for ScriptClass
impl UnwindSafe for ScriptClass
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more