pub struct ScriptFont {
pub scripts: Vec<String>,
pub faces: HashMap<String, String>,
pub default: String,
pub scale: f64,
pub leading: f64,
pub tracking: bool,
pub whole_words: bool,
pub language: Option<String>,
}Expand description
How a document sets one writing system: the face that stands in for each
requested font, and what that system’s text may do. meta.script_fonts
in a document, for this render only.
Fields§
§scripts: Vec<String>ISO 15924 codes this row sets (“Deva”, or “Hani”, “Hira”, “Kana” for Japanese).
faces: HashMap<String, String>Requested family (lowercase) to the family that sets this script, “Family@800” to set it at that weight whatever the text asks for.
default: StringThe family for any other requested font.
scale: f64Size relative to the requested one, so a line reads at one size.
leading: f64Line height relative to the requested one, for tall marks.
tracking: boolWhether letter spacing applies. Connected scripts and scripts whose letters hang from one line break apart with it.
whole_words: boolWhether per-letter animation moves whole words instead of clusters (the same scripts).
language: Option<String>Language for the font’s localized forms (“mr”, “ur”).
Trait Implementations§
Source§impl Clone for ScriptFont
impl Clone for ScriptFont
Source§fn clone(&self) -> ScriptFont
fn clone(&self) -> ScriptFont
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more