Companion

Functions

Link copied to clipboard
fun fromFile(file: String, size: Double, characterSet: Set<Char> = defaultFontmapCharacterSet, contentScale: Double = 1.0): FontImageMap

Creates or retrieves a cached FontImageMap instance from a file source. The FontImageMap is generated or identified based on the provided parameters such as file path, font size, character set, and content scaling.

Link copied to clipboard
fun fromUrl(fontUrl: String, size: Double, characterSet: Set<Char> = defaultFontmapCharacterSet, contentScale: Double = 1.0): FontImageMap

Creates a FontImageMap instance from a font file URL with the specified parameters.