Skip to content

jmseb3/Android_Font_Helper_Plugin

Repository files navigation

Font Helper Plugin

Compose FontFamily generator for Android Studio and IntelliJ.

Font Helper generates Kotlin FontFamily code and automatically copies font files into the correct module paths for Android Compose and Compose Multiplatform projects.

Key features:

  • Drag & drop font import (.ttf, .otf)
  • ZIP import with automatic weight/style matching and conflict resolution
  • Google Fonts import flow (Beta)
  • Package name auto-detection with one-click generation
  • Setup/Fonts tab layout to reduce long scrolling in the tool window
  • Automatic module list refresh after Gradle sync completion

Resources:

Install

Search Font Helper in JetBrains Marketplace, or install from:

Open Tool Window

main-setup

Open the FontHelper (FF) tool window from the IDE right side. The main screen is now split into Setup and Fonts tabs to reduce long scrolling.

main-fonts

Quick Start

  1. Enter Font Class Name.
  2. Select Module.
  3. Confirm/adjust Package Name. Package name is auto-detected from module sources/manifest and can be refreshed with Auto Detect Package.
  4. Add font files.
  5. Click Generate (fixed at the bottom action bar).

Add Font Files

  • Drag & drop into the dashed drop area.
  • Drag & drop directly into each field.
  • Use the folder button in each field.
  • Import from downloaded ZIP.
  • Import from Google Fonts (Beta).

Keyword-Based Matching

When importing multiple files, Font Helper maps files to weight/style by filename keywords (case-insensitive).

Customize matching rules in:

  • Settings > Tools > Font Helper Settings

settings

Font Weight Normal Keyword Italic Keyword
Thin -thin -thinitalic
ExtraLight -extralight -extralightitalic
Light -light -lightitalic
Regular -regular -italic
Medium -medium -mediumitalic
SemiBold -semibold -semibolditalic
Bold -bold -bolditalic
ExtraBold -extrabold -extrabolditalic
Black -black -blackitalic

If multiple files match the same slot, Font Helper opens a conflict dialog with Prev/Next slot navigation so you can choose one file per slot. google-duplicate

Google Fonts

Google import uses download/list?family=... metadata first, then downloads only selected files.

google-dialog google-result

  • Marked as experimental in UI.
  • Manifest list is cached temporarily to reduce repeated requests.
  • Downloaded files are cached and reusable.
  • Clear Cache removes downloaded cache files and cached manifests.

Output Paths

Output Android Compose Multiplatform
Class File ./<module>/src/main/<java|kotlin>/<packageName> ./<module>/src/commonMain/kotlin/<packageName>
Font Files ./<module>/src/main/res/font ./<module>/src/commonMain/composeResources/font

Generated Naming

  • Font file: (className)_(weight)[_italic].ttf
  • Class file: [ClassName].kt

After generation, the plugin refreshes project files so new files appear immediately.

About

Compose FontFamily generator for Android Studio/IntelliJ with drag-drop, ZIP, and Google Fonts import.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages