#gui #material #material-icons #icon #icons


Strongly-typed codepoint mappings for the Google Material Icons font

2 unstable releases

Uses old Rust 2015

0.2.0 May 20, 2022
0.1.0 Oct 23, 2018

#507 in GUI

Download history 42/week @ 2023-02-05 19/week @ 2023-02-12 35/week @ 2023-02-19 19/week @ 2023-02-26 31/week @ 2023-03-05 8/week @ 2023-03-12 24/week @ 2023-03-19 44/week @ 2023-03-26 16/week @ 2023-04-02 29/week @ 2023-04-09 8/week @ 2023-04-16 22/week @ 2023-04-23 31/week @ 2023-04-30 18/week @ 2023-05-07 25/week @ 2023-05-14 19/week @ 2023-05-21

104 downloads per month
Used in 5 crates (3 directly)




This crate contains the auto-generated mapping from an icon name (such as Icon::NetworkWifi) to the character codepoint \u{e1ba}) in Googles Material Icon Font (https://material.io/tools/icons/) - useful if you want to use the material-icons font in user interfaces created in Rust


use material_icons::{Icon, icon_to_char};
let icon_char = icon_to_char(Icon::Rotation3d);
assert_eq!('\u{e84d}', icon_char);

When the resulting character is displayed using any font renderer, the character will result in the "3d_rotation" glyph.

License (please read - regarding embedded font)

According to https://github.com/google/material-design-icons/blob/master/LICENSE (retrieved 23-10-2018) the font data embedded in this library is licensed under the Apache 2.0 license, which explains the license for this crate.

You do not need to attribute Google (although they appreciate it):

"We have made these icons available for you to incorporate into your products under the Apache License Version 2.0. Feel free to remix and re-share these icons and documentation in your products. We'd love attribution in your app's about screen, but it's not required. The only thing we ask is that you not re-sell these icons."


~30K SLoC