obtain
open fun obtain(@NonNull source: CharSequence, @NonNull paint: TextPaint, @IntRange(from = 0 ) width: Int): StaticLayoutBuilderCompat
Obtain a builder for constructing StaticLayout objects.
Return
a builder object used for constructing the StaticLayout
Parameters
source
The text to be laid out, optionally with spans
paint
The base paint used for layout
width
The width in pixels