Constant freya::elements::paragraph::font_family

source ·
pub const font_family: (&'static str, Option<&'static str>, bool);
Expand description

With the font_family you can specify what font you want to use for the inner text.

Check out the custom font example to see how you can load your own fonts.

§Example

fn app() -> Element {
    rsx!(
        label {
            font_family: "Inter",
            "Hello, World!"
        }
    )
}