ferroui_fonts_inter/lib.rs
1//! The Inter font family, embedded.
2//!
3//! A platform without system fonts (the browser) has no default font; an
4//! application adds this collection with
5//! [`AppBuilder::with_inter_font`](ferroui_controls::AppBuilder) and names
6//! the family as `fonts:Inter#Inter`.
7
8mod app_builder_extension;
9mod assets;
10mod inter_font_collection;
11
12pub use app_builder_extension::AppBuilderExtension;
13pub use inter_font_collection::InterFontCollection;
14
15/// Registers the font files as assets of [`ASSEMBLY_NAME`], which upstream
16/// has as soon as the assembly is loaded: for code that opens them by URI
17/// without creating the collection. Cheap and idempotent.
18pub fn register_assets() {
19 assets::register();
20}
21
22/// The name of the assembly the fonts are assets of.
23pub const ASSEMBLY_NAME: &str = "FerroUI.Fonts.Inter";