Companion

object Companion

Functions

Link copied to clipboard
fun loadFont(font: File): Boolean
fun loadFont(path: String): Boolean

Loads a font file and registers it in the JFX graphics system.

fun loadFont(inputStream: InputStream): Boolean

Loads a font file input stream and registers it in the JFX graphics system.

Link copied to clipboard
fun runOnGUIThread(task: Runnable)

Executes given task on the UI thread. Use this method to update properties of ComponentViews from asynchronous environments like Animation.onFinished events. If no Application has yet been started, the task is executed on the calling Thread. This function is Thread safe.