If RLE compression is used (rare), a flag in the header indicates run-length encoded rows.
I built (Jetpack Compose Font Generator) to do it for you. Point it at your folder and get your Kotlin declarations instantly. jcfg font