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.ttffont. - 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
glyphwhen bundled, orGENERIC_FILE_GLYPHotherwise. - supports_
glyph - Returns whether
glyphis present in the audited embedded font.