Is there any way to create a family of fonts with delayed loading? I have a library that has multiple font weights in assets, the library by default just uses
regular and
bold fonts, the remaining multiple font weights should be used by the user. After browsing through the source code I found that it seems that only the
fun Font(resId: Int, ...)
is lazily loaded, the fonts created via
fun Font(assetManager: AssetManager, ...)
and
fun Font(file: File, ...)
are loaded immediately, so what should I do? Is there anything that might be called
LazyAssetsFont?