loadFallbackFontFromAsset

fun NativeTextEngine.loadFallbackFontFromAsset(context: Context, assetPath: String): Boolean

Loads a fallback font from Android assets using zero-copy file descriptor. More memory efficient than loading entire font into ByteArray.

Return

true if font loaded successfully

Parameters

context

Android context for accessing assets

assetPath

Path to font file in assets (e.g., "fonts/NotoSansCJK.otf")