6 releases (breaking)

0.29.1 Oct 6, 2024
0.29.0 Sep 29, 2024
0.27.2 Apr 20, 2024
0.26.2 Feb 20, 2024
0.1.0 Oct 24, 2023

#511 in Images

Download history 339/week @ 2024-08-18 260/week @ 2024-08-25 86/week @ 2024-09-01 131/week @ 2024-09-08 229/week @ 2024-09-15 332/week @ 2024-09-22 526/week @ 2024-09-29 404/week @ 2024-10-06 219/week @ 2024-10-13 174/week @ 2024-10-20 294/week @ 2024-10-27 373/week @ 2024-11-03 110/week @ 2024-11-10 177/week @ 2024-11-17 232/week @ 2024-11-24 218/week @ 2024-12-01

740 downloads per month

MIT/Apache

4MB

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.29.1"

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.29.1", 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));

Icon comments

icon hint

License

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

Dependencies

~4–9MB
~84K SLoC