Font

interface Font

Represents a font used to render text. NOTE: this interface is only intended to be implemented by the framework. This ensures that instances always represent a loaded Font that can be used to render text without issue.

Author

Nicholas Eddy

See also

Types

Link copied to clipboard
object Companion
Link copied to clipboard
sealed class Style

Properties

Link copied to clipboard
abstract val family: String
Link copied to clipboard
abstract val size: Int
Link copied to clipboard
abstract val style: Font.Style
Link copied to clipboard
abstract val weight: Int

Inherited functions

Link copied to clipboard
operator fun Font?.invoke(text: () -> StyledText): StyledText
operator fun Font?.invoke(text: String): StyledText