Hacker News new | past | comments | ask | show | jobs | submit login

I am using https://icomoon.io/app/.

I like that I can select only a few icons and generate a custom true type font straight from the web application.




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.


I used them in applications developed in C++.

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.


On advantage is if you have a lot of icons, you don’t end up making a request per icon.

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).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: