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