pub enum ScriptCategory {
EnglishLike,
Dense,
Tall,
}Expand description
A characterization of the of a TextTheme’s glyphs that is used to define
its localized TextStyle geometry for ThemeData.text_theme.
The script category defines the overall geometry of a TextTheme for
the Typography::geometry_theme_for method in terms of the
three language categories defined in https://material.io/go/design-typography.
Generally speaking, font sizes for ScriptCategory::Tall and
ScriptCategory::Dense scripts - for text styles that are smaller than the
title style - are one unit larger than they are for
ScriptCategory::EnglishLike scripts.
Variants§
EnglishLike
The languages of Western, Central, and Eastern Europe and much of Africa are typically written in the Latin alphabet. Vietnamese is a notable exception in that, while it uses a localized form of the Latin writing system, its accented glyphs can be much taller than those found in Western European languages. The Greek and Cyrillic writing systems are very similar to Latin.
Dense
Language scripts that require extra line height to accommodate larger glyphs, including Chinese, Japanese, and Korean.
Tall
Language scripts that require extra line height to accommodate larger glyphs, including South and Southeast Asian and Middle-Eastern languages, like Arabic, Hindi, Telugu, Thai, and Vietnamese.
Trait Implementations§
Source§impl Clone for ScriptCategory
impl Clone for ScriptCategory
impl Copy for ScriptCategory
Source§impl Debug for ScriptCategory
impl Debug for ScriptCategory
impl Eq for ScriptCategory
Source§impl Hash for ScriptCategory
impl Hash for ScriptCategory
Source§impl PartialEq for ScriptCategory
impl PartialEq for ScriptCategory
impl StructuralPartialEq for ScriptCategory
Auto Trait Implementations§
impl Forget for ScriptCategory
impl Freeze for ScriptCategory
impl Move for ScriptCategory
impl RefUnwindSafe for ScriptCategory
impl Send for ScriptCategory
impl Sync for ScriptCategory
impl Unpin for ScriptCategory
impl UnsafeUnpin for ScriptCategory
impl UnwindSafe for ScriptCategory
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
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
key and return true if they are equal.