Skip to main content

feature_icon

Function feature_icon 

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

The icon character for a feature type, if one exists. Every kernel feature type has a FreeCAD-inspired monoline glyph in the font’s Private-Use block U+E030-E059 (edited as BREP_app/assets/glyphs/*.svg, which are also the source of the inline SVG icon catalog — see BREP_app/src/icons.rs; every_feature_type_has_catalogued_artwork there checks each of these codepoints actually HAS a glyph, which this module’s own test cannot). 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.