check

abstract fun check(font: String, text: String = definedExternally): Boolean(source)

MDN Reference