Skip to main content

feature_icon

Function feature_icon 

Source
pub fn feature_icon(kind: &str) -> Option<char>
Expand description

The custom BrepIcons glyph for a feature type, if one exists. Every kernel feature type has a FreeCAD-inspired monoline glyph in the font’s Private-Use block starting at U+E030 (edited as tools/iconfont/glyphs/*.svg). The font is installed as family "brep_icons" at the HEAD of egui’s fallback chain (crate-side fonts.rs), so a bare returned char renders as the icon.

Matches the SAME alias set the kernel dispatch does (short codes AND the long-/class-name strings saved files carry — e.g. "CHAMFER", the misspelt "DATIUM", "PUSH FACE"), uppercased, so a type loaded from disk resolves.