#font-awesome #iced #icons #iced-gui

iced_font_awesome

Font Awesome component for Iced

7 unstable releases (3 breaking)

0.4.2 Feb 14, 2026
0.4.1 Dec 10, 2025
0.3.0 Nov 9, 2025
0.2.1 Jan 30, 2025
0.1.0 Sep 4, 2024

#399 in GUI

Download history 292/week @ 2025-11-18 343/week @ 2025-11-25 236/week @ 2025-12-02 213/week @ 2025-12-09 65/week @ 2025-12-16 28/week @ 2025-12-23 70/week @ 2025-12-30 97/week @ 2026-01-06 138/week @ 2026-01-13 137/week @ 2026-01-20 269/week @ 2026-01-27 227/week @ 2026-02-03 302/week @ 2026-02-10 221/week @ 2026-02-17 423/week @ 2026-02-24 357/week @ 2026-03-03

1,372 downloads per month
Used in 3 crates

MIT license

12MB
311 lines

Iced Font Awesome

Crates.io Crates.io License

iced_font_awesome is a simple and efficient widget for displaying Font Awesome icons in your Iced applications. Customize the size and color of your icons effortlessly.

Features

  • Easy Integration: Quickly add Font Awesome icons to your Iced projects.
  • Customizable: Set the size and color of icons to fit your design needs.

Getting Started

Installation

Add the following to your Cargo.toml:

[dependencies]
iced = "^0.14"
iced_font_awesome = "0.4.0"

Usage

Here's a basic example of how to use iced_font_awesome:

use iced::{color, widget::row, Task};
use iced_font_awesome::{fa_icon, fa_icon_brands, fa_icon_solid};

fn main() -> iced::Result {
    iced::application(Demo::new, Demo::update, Demo::view).run()
}

struct Demo {}

impl Demo {
    fn new() -> (Self, Task<()>) {
        (Self {}, Task::none())
    }

    fn update(&mut self, _message: ()) {}

    fn view(&self) -> iced::Element<'_, ()> {
        row!(
            fa_icon("circle-user").size(40.0).color(color!(0, 255, 0)),
            fa_icon_solid("medal")
                .size(50.0)
                .color(color!(249, 170, 51)),
            fa_icon_brands("google").size(60.0)
        )
        .align_y(iced::Alignment::Center)
        .padding(10)
        .spacing(10)
        .into()
    }
}

Result:

Captura de imagem_20240903_201509

Customization

  • Size: Adjust the size of the icon using the size method.
  • Color: Set the color using the color method.

Icons Explorer

The Icons Explorer is a handy tool to browse and experiment with all available Font Awesome icons.

captura de imagem

To run the Icons Explorer example, follow these steps:

  1. Clone the repository:
git clone https://github.com/danielmbomfim/iced_font_awesome.git
cd iced_font_awesome
  1. Run the example:
cargo run --example explorer

This will start the Explorer, allowing you to browse through the icons.

Font Awesome versions

This library defaults to Font Awesome 7. To use Font Awesome 6, enable the v6 feature and import the icons as follows:

use iced_font_awesome::v6::{fa_icon, fa_icon_brands, fa_icon_solid};

Map of iced version to required iced_font_awesome version.

Iced Version Required Iced Font Awesome Version
0.12 0.1.0
0.13 0.2.0
0.14 0.4.0

Dependencies

~29–50MB
~767K SLoC