36

GlyphSearch: Improving the Search for Icon Fonts

 2 years ago
source link: https://thomaspark.co/2013/11/glyphsearch-improving-the-search-for-icon-fonts/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

GlyphSearch: Improving the Search for Icon Fonts

Right now we’re blessed with many, well, awesome icon fonts that continue to grow with every release, like Font Awesome, Glyphicons, and Ionicons. And game-changers like Iconic might be just around the bend. But searching through this abundance of icons one by one often leads me to tedium and eye strain.

Sure, I can use the browser’s find function or the in-page search filter to search a library. But unless I match the class name exactly, it won’t be found. This is a problem I’ve talked about before, and one that Font Awesome takes some steps to address by aliasing icon names. But then I compare multiple libraries, deliberating on which to use based on coverage and design, and this problem multiplies.

Speedometers

To scratch this itch of mine, this past weekend I created GlyphSearch. It allows you to search Font Awesome, Glyphicons, and Ionicons simultaneously, and icons have been tagged with additional terms, meaning for example that all three of the icons above should be found regardless of whether you query for “tachometer”, “dashboard”, or “speedometer”. You can also click an icon to quickly copy the class name to your clipboard.

GlyphSearch is about as minimal a tool as I could make for this, but it gets the job done for me, and hopefully you agree. I was tempted to add settings like font size and color but resisted; if there’s any demand, let me know.

Notes

Besides the icon font libraries themselves, I use Algolia for search and Flatly for styles. The project is hosted on GitHub.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK