fromUrl
fun fromUrl(fontUrl: String, size: Double, characterSet: Set<Char> = defaultFontmapCharacterSet, contentScale: Double = 1.0): FontImageMap(source)
Creates a FontImageMap
instance from a font file URL with the specified parameters.
Return
A FontImageMap
generated based on the given parameters.
Parameters
fontUrl
The URL of the font file to be used.
size
The size of the font to be rendered.
characterSet
The set of characters to include in the font image map. Defaults to defaultFontmapCharacterSet
.
contentScale
The scaling factor to apply to the font rendering. Defaults to 1.0
.