Skip to main content

Module recommended

Module recommended 

Source
Expand description

Common font recommendations for Aceternity-style UIs

These fonts are commonly used in modern UI design and pair well with the Armas component library.

§Inter

§Geist

§JetBrains Mono

§Example: Loading Inter

let inter_regular = include_bytes!("../fonts/Inter-Regular.ttf");
let inter_medium = include_bytes!("../fonts/Inter-Medium.ttf");
let inter_semibold = include_bytes!("../fonts/Inter-SemiBold.ttf");
let inter_bold = include_bytes!("../fonts/Inter-Bold.ttf");

armas_basic::fonts::load_font_family(
    ctx,
    "Inter",
    inter_regular,
    Some(inter_medium),
    Some(inter_semibold),
    Some(inter_bold),
);

// Set as default
armas_basic::fonts::set_default_font(ctx, "Inter");