4 releases (breaking)

new 0.27.2 Apr 20, 2024
0.26.2 Feb 20, 2024
0.2.0 Jan 22, 2024
0.1.0 Oct 24, 2023

#124 in Graphics APIs

Download history 6/week @ 2024-01-18 134/week @ 2024-02-15 231/week @ 2024-02-22 125/week @ 2024-02-29 94/week @ 2024-03-07 84/week @ 2024-03-14 172/week @ 2024-03-21 82/week @ 2024-03-28 103/week @ 2024-04-04 96/week @ 2024-04-11 418/week @ 2024-04-18

702 downloads per month

MIT/Apache

660KB
3K SLoC

egui_remixicon

Bundles Remix Icon with boilerplate to use in your egui app.

Got inspired by egui_phosphor, code uses the same structure.

Installation

Add the crate as a dependency in Cargo.toml:

egui-remixicon = "0.27.2"

On startup, update the fonts in your egui context:

let mut fonts = egui::FontDefinitions::default();
egui_remixicon::add_to_fonts(&mut fonts);

cc.egui_ctx.set_fonts(fonts);

Install without egui dependency

If you would like to use this crate without egui or with an egui version that is out of sync with the latest version of this crate, you can add without default features:

egui-remixicon = { version="0.27.2", default-features=false }

The font file can then be accessed as

egui_remixicon::FONT

Usage

Use the constants provided by the crate in your text:

ui.label(egui::RichText::new(format!("{} Heart", egui_remixicon::icons::HEARTS_FILL)).size(32.0));

License

egui-remixicon is licensed under MIT OR Apache-2.0. Remix Icon are licensed under Apache-2.0.

Dependencies

~4.5–9.5MB
~78K SLoC