FontDriver

interface FontDriver(source)

FontDriver interface

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun loadFace(fileOrUrl: String): Face

Load a face at DEFAULT_SIZE_IN_POINTS, use Face.withSize to obtain the face at other sizes

Link copied to clipboard
open suspend fun loadFaceSuspend(fileOrUrl: String): Face

Load a face at DEFAULT_SIZE_IN_POINTS without blocking, drivers that load fonts asynchronously, like in browsers, override this