This page allows you to generate a Kotlin object containing every icon from an icon font file (and optionally to create a subset of this font). Practically, here is what changes when using this:
// Before
FontIcon(iconName = "star_outlined")
// After
FontIcon(icon = MyFontObject.StarOutlined)
To start using this, import a font file here: