Constant freya::elements::paragraph::font_width
pub const font_width: (&'static str, Option<&'static str>, bool);Expand description
You can choose a width for a text using the font_width attribute.
⚠️ Only fonts with variable widths will be affected.
Accepted values:
ultra-condensedextra-condensedcondensednormal(default)semi-expandedexpandedextra-expandedultra-expanded
§Example
fn app() -> Element {
rsx!(
label {
font_width: "ultra-expanded",
"Hello, wide World!"
}
)
}