All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jsMain.web.fonts.FontFaceSet.kt Maven / Gradle / Ivy

// Automatically generated - do not modify!

package web.fonts

import js.core.ReadonlyArray
import web.events.Event
import web.events.EventHandler
import web.events.EventTarget
import kotlin.js.Promise

external class FontFaceSet(
    initialFaces: ReadonlyArray,
) : EventTarget {
    var onloading: EventHandler?
    var onloadingdone: EventHandler?
    var onloadingerror: EventHandler?
    val ready: Promise
    val status: FontFaceSetLoadStatus
    fun check(
        font: String,
        text: String = definedExternally,
    ): Boolean

    fun load(
        font: String,
        text: String = definedExternally,
    ): Promise>

    fun forEach(action: (item: FontFace) -> Unit)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy