loadFaceSuspend

suspend fun loadFaceSuspend(fileOrUrl: String): Face(source)

Load a face without blocking, in browsers fonts are fetched asynchronously

The face is loaded at FontDriver.DEFAULT_SIZE_IN_POINTS, use Face.withSize to obtain the face at other sizes.

Parameters

fileOrUrl

a file or url to load the face from