TextMetrics

interface TextMetrics

Provides a mechanism to measure the size of various types of text.

Created by Nicholas Eddy on 10/30/17.

Author

Nicholas Eddy

Functions

Link copied to clipboard
abstract fun height(text: StyledText, textSpacing: TextSpacing = default): Double
abstract fun height(text: String, font: Font? = null): Double
abstract fun height(text: StyledText, width: Double, indent: Double = 0.0, lineSpacing: Float = 1.0f, textSpacing: TextSpacing = default): Double
abstract fun height(text: String, width: Double, indent: Double = 0.0, font: Font? = null, lineSpacing: Float = 1.0f, textSpacing: TextSpacing = default): Double
Link copied to clipboard
open fun size(text: StyledText, textSpacing: TextSpacing = default): Size
open fun size(text: String, font: Font? = null, textSpacing: TextSpacing = default): Size
open fun size(text: StyledText, width: Double, indent: Double = 0.0, lineSpacing: Float = 1.0f, textSpacing: TextSpacing = default): Size
open fun size(text: String, width: Double, indent: Double = 0.0, font: Font? = null, lineSpacing: Float = 1.0f, textSpacing: TextSpacing = default): Size
Link copied to clipboard
abstract fun width(text: StyledText, textSpacing: TextSpacing = default): Double
abstract fun width(text: String, font: Font? = null, textSpacing: TextSpacing = default): Double
abstract fun width(text: StyledText, width: Double, indent: Double = 0.0, textSpacing: TextSpacing = default): Double
abstract fun width(text: String, width: Double, indent: Double = 0.0, font: Font? = null, textSpacing: TextSpacing = default): Double