Constant freya::elements::paragraph::font_family

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!"
        }
    )
}