| Crates.io | google_material_symbols |
| lib.rs | google_material_symbols |
| version | 0.2.9 |
| created_at | 2025-01-29 20:05:46.526651+00 |
| updated_at | 2025-03-25 00:35:49.392352+00 |
| description | Google Material Design Icon Font |
| homepage | |
| repository | https://github.com/rscarson/font-map |
| max_upload_size | |
| id | 1535298 |
| size | 7,786,500 |
This crate provides an enum of all the glyphs in the Google Material Symbols font.
Additionally, it provides a way to load the font, and QOL features for using the font in iced.
In addition - you can hover over the icons in your IDE to see a preview of the icon!
See https://fonts.google.com/icons for more information
I am not affiliated with Google Inc., nor do I have any rights to the Google Material Symbols font.
This crate is published with a copy of the font, and its license, as allowed by the license.
See [GoogleMaterialSymbols] for the list of available icons, including their names, codepoints and a preview image.
See [GoogleMaterialSymbols::FONT_FAMILY] for the functions and constants available on the enum (So you don't need to scroll past 3,589 icons to find it!)
The individual glyphs are in the GoogleMaterialSymbols enum:
use google_material_symbols::GoogleMaterialSymbols;
let _ = GoogleMaterialSymbols::MagicButton;
Each glyph contains the following information:
GoogleMaterialSymbols::MagicButton as u32GoogleMaterialSymbols::MagicButton.name()You can also get the actual char from the enum, with char::from(GoogleMaterialSymbols::MagicButton), or GoogleMaterialSymbols::MagicButton.to_string()
If you use iced there are some QOL features built-in:
**NOTE: ** you will need to activate the iced crate-level feature to use these!
FONT_BYTES] is the raw bytes of the font, for loading into icedIcedExt] provides the helper functions for using the font in icedInto<iced::Element>, which will use the default font sizeuse google_material_symbols::{IcedExt, categories::Dev};
// A text widget configured to use the icon font, with the selected glyph, and a font size of 24
let text_widget = Dev::Android.into_text(24);
You will additionally need to load the font, by calling .font(google_material_symbols::FONT_BYTES) on your iced::Application.
icedDefault: Off
Provides some QOL features for using the font in iced, including a font definition, and conversion to an iced Text widget.