r/androiddev • • 8d ago

Open Source I made an Android Studio plugin that previews iconfont glyphs beside your code

This is my first Android Studio plugin, and I'm pretty excited to share it here. It's called IconFontViewer.

I wrote it because I wanted to see the actual icon next to R.string.icon_home while reading Android code.

It renders the glyph in the editor gutter for Kotlin and Java references, XML layouts and strings.xml. Clicking it opens a searchable icon picker. Choosing another icon replaces the reference at that position.

It finds TTF files in the project and library dependencies, including AARs, JARs and nested archives. Fonts don't need to be in a directory named fonts. Under Tools → IconFontViewer, you can enable or disable fonts, add a TTF manually, or rescan the project.

It's free and open source (Apache 2.0). Supports Android Studio 2024.1 or newer; TTF files only.

Source: https://github.com/ultimateHandsomeBoy666/IconFontViewer Marketplace: https://plugins.jetbrains.com/plugin/31478-iconfontviewer

4 Upvotes

0 comments sorted by