Package-level declarations
Types
Link copied to clipboard
object EllipsisPresets
Link copied to clipboard
class GraphemesSequence(tm: TextMetrics, str: CharSequence, range: IntProgression) : Sequence<String>
Link copied to clipboard
Link copied to clipboard
class TextMetrics
A class which provides text measurement utilities.
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun TextMetrics.graphemesOf(str: CharSequence, range: IntProgression = str.indices): GraphemesSequence
Iterator over the graphemes in a string, taking care to group Unicode clusters correctly.
Link copied to clipboard
Convenience version of isEmoji that works with raw strings instead of code points..
Link copied to clipboard
Convenience version of renderWidthOf using a form people are more used to for substrings.
Link copied to clipboard
fun TextMetrics.truncateToWidth(text: CharSequence, maxWidth: Int, truncateAt: TruncateAt = TruncateAt.END, ellipsis: String = EllipsisPresets.NONE): String