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, width: Double, indent: Double = 0.0, lineSpacing: Float = 1.0f, textSpacing: TextSpacing = default): Double
Link copied to clipboard
open fun size(text: StyledText, width: Double, indent: Double = 0.0, lineSpacing: Float = 1.0f, textSpacing: TextSpacing = default): Size
Link copied to clipboard
abstract fun width(text: StyledText, width: Double, indent: Double = 0.0, textSpacing: TextSpacing = default): Double