get Font Bytes
Get font bytes from FontFamily on Android. Supports:
Resource fonts (e.g. FontFamily(Font(R.font.my_font)))
System default fonts as fallback
expect fun getFontBytes(fontFamily: ERROR CLASS: Symbol not found for FontFamily??, platformContext: Any?): ByteArray?
Get font bytes from a FontFamily using platform-specific mechanisms.
Return
Font file bytes, or null if not available
Parameters
font Family
The font family to resolve
platform Context
Platform context (Context on Android, null elsewhere)
Get font bytes from FontFamily on JVM/Desktop. Supports:
Resource fonts from classpath
File-based fonts
System fonts as fallback