pub enum Script {
Show 25 variants
Latin,
Bengali,
Devanagari,
Arabic,
Hebrew,
Greek,
Cyrillic,
Georgian,
Armenian,
Ethiopic,
Gujarati,
Gurmukhi,
Tamil,
Telugu,
Kannada,
Malayalam,
Sinhala,
Thai,
Lao,
Khmer,
Myanmar,
Japanese,
Korean,
Chinese,
Other,
}Variants§
Latin
Bengali
Devanagari
Arabic
Hebrew
Greek
Cyrillic
Georgian
Armenian
Ethiopic
Gujarati
Gurmukhi
Tamil
Telugu
Kannada
Malayalam
Sinhala
Thai
Lao
Khmer
Myanmar
Japanese
Korean
Chinese
Han with no kana or hangul alongside it. Real Japanese prose always
carries kana, so unaccompanied Han is overwhelmingly Chinese - but the
book’s dc:language still wins when it is present.
Other
Implementations§
Source§impl Script
impl Script
Sourcepub const SLOTS: usize = 24
pub const SLOTS: usize = 24
Number of registry slots. Sized to the enum so a new variant cannot silently overflow the font table.
Sourcepub fn font_id(self) -> u8
pub fn font_id(self) -> u8
Glyph-cache discriminator. 0 is the embedded Latin face, so every script is offset by one; the mono face takes the last id.
pub fn is_rtl(self) -> bool
Sourcepub fn uses_word_spacing(self) -> bool
pub fn uses_word_spacing(self) -> bool
Scripts written without spaces between words, so a line may be broken between any two glyphs rather than only at spaces.
Trait Implementations§
impl Copy for Script
impl Eq for Script
impl StructuralPartialEq for Script
Auto Trait Implementations§
impl Freeze for Script
impl RefUnwindSafe for Script
impl Send for Script
impl Sync for Script
impl Unpin for Script
impl UnsafeUnpin for Script
impl UnwindSafe for Script
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.