Crate ailloli_ui_devicons_font

Source
Expand description

License-audited file-icon font embedded as raw bytes.

The font is a deterministic subset of Nerd Fonts Symbols Only 3.4.0. It contains only glyphs used by devicons 0.6.12 plus the canonical folder and file fallbacks. See SOURCE_PROVENANCE and THIRD_PARTY_NOTICES.

§Examples

use ailloli_ui_devicons_font::{glyph_or_fallback, FOLDER_GLYPH};
assert_eq!(glyph_or_fallback(FOLDER_GLYPH), FOLDER_GLYPH);

Constants§

DEVICON_FONT_BYTES
Static bytes of the bundled AilloliUIFileIcons-Regular.ttf font.
FOLDER_GLYPH
Canonical folder glyph at private-use codepoint U+F07B.
GENERIC_FILE_GLYPH
Generic-file fallback glyph at private-use codepoint U+F15B.
SUPPORTED_GLYPHS
All 198 glyphs retained by the audited font subset.

Functions§

glyph_or_fallback
Returns glyph when bundled, or GENERIC_FILE_GLYPH otherwise.
supports_glyph
Returns whether glyph is present in the audited embedded font.