docs.rs failed to build google_material_symbols-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
google_material_symbols-0.2.9
Google Material Symbols Font
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.
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.
use ;
//
// You can access the icon by name, and get the postfix name, or codepoint
// You can also hover over the icon to see information about it, and a preview of the icon (as inline svg)
assert_eq!;
let codepoint = Delete as u32;
//
// You can also search for glyphs, and extract data about the font
let font = load_font;
let icon = font.glyph_named.unwrap;
let svg = icon.svg_outline; // The same as the inline svg in the hover
//
// If you use iced there are some QOL features built-in
// `google_material_symbols::FONT_BYTES` is the raw bytes of the font, for loading into iced
// You need to activate the `iced` feature to use these features
let text_widget = Delete.into_text; // A text widget with the icon, in the font, size 24
let widget: Element = Delete.into; // A text widget with the icon, in the default font size