addFontAssociation

suspend fun Krayon.addFontAssociation(name: String, resource: FontResource, environment: ResourceEnvironment)

Registers resource as the font to use for name inside a ComposeKanvas.

An environment can be obtained by calling getSystemResourceEnvironment. Note that getSystemResourceEnvironment is considered expensive, so when possible it is best to call it once and reuse the result across multiple calls to this function.