What benefit would that have vs SVG? It strikes me as cumbersome if you wanted to quickly add icons to an existing project, plus your ability to style with CSS would be limited compared to inline SVG.
The toolkit is Dear ImGui and I load the TTF font with the simple API AddFontFromMemoryCompressedBase85TTF.
Then when I need a button with an Icon I just use it like this: if (ImGui::Button(ICON_FIRST, button_sz)) { }
The trick in C++ was to define the ICON_FIST in this way:
#define ICON_FIRST u8"\uea21"
I can then rescale my interface by simply changing the font size and the icons keep all nice and clean.
And if you in-line the SVG then you don’t get caching benefits.
Plus you can actually style the individual strokes with icomoon icons - it’s just not as trivial.
Disclaimer: I’ve been a happy icomoon customer for years (I just wish they had an API).