FolderBasedNativeSystemFontProvider

open class FolderBasedNativeSystemFontProvider(val context: CoroutineContext, val folders: List<String> = (linuxFolders + windowsFolders + macosFolders + androidFolders + iosFolders).distinct(), val fontCacheFile: VfsFile = standardVfs.userSharedCacheFile("korimFontCache")) : TtfNativeSystemFontProvider

Constructors

Link copied to clipboard
constructor(context: CoroutineContext, folders: List<String> = (linuxFolders + windowsFolders + macosFolders + androidFolders + iosFolders).distinct(), fontCacheFile: VfsFile = standardVfs.userSharedCacheFile("korimFontCache"))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun defaultFont(): TtfFont
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getSystemFontGlyph(systemFont: SystemFont, size: Double, codePoint: Int, path: GlyphPath, reader: WStringReader?): GlyphPath?
Link copied to clipboard
open override fun getSystemFontGlyphMetrics(systemFont: SystemFont, size: Double, codePoint: Int, metrics: GlyphMetrics, reader: WStringReader?)
Link copied to clipboard
open override fun getSystemFontKerning(systemFont: SystemFont, size: Double, leftCodePoint: Int, rightCodePoint: Int): Double
Link copied to clipboard
open override fun getSystemFontMetrics(systemFont: SystemFont, size: Double, metrics: FontMetrics)
Link copied to clipboard
open override fun getTtfFromSystemFont(systemFont: SystemFont): TtfFont
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun listFontNamesWithFiles(): Map<String, VfsFile>
Link copied to clipboard
open override fun loadFontByName(name: String): TtfFont?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ttf(systemFont: SystemFont): TtfFont