Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard

Only works on TextBlobs that come from TextBlobBuilderRunHandler/Shaper default handler.

Link copied to clipboard

Returns conservative bounding box. Uses Paint associated with each glyph to determine glyph bounds, and unions all bounds. Returned bounds may be larger than the bounds of all glyphs in runs.

Link copied to clipboard

Only works on TextBlobs that come from TextBlobBuilderRunHandler/Shaper default handler.

Link copied to clipboard

Only works on TextBlobs that come from TextBlobBuilderRunHandler/Shaper default handler.

Link copied to clipboard
Link copied to clipboard
expect open val isClosed: Boolean

Check if underlying resource is closed.

Link copied to clipboard

Only works on TextBlobs that come from TextBlobBuilderRunHandler/Shaper default handler.

Link copied to clipboard

Return result depends on how blob was constructed.

Link copied to clipboard

Only works on TextBlobs that come from TextBlobBuilderRunHandler/Shaper default handler.

Link copied to clipboard

Returns a non-zero value unique among all text blobs.

Functions

Link copied to clipboard
expect open fun close()

Free underlying native resource, peer is useless afterwards.

Link copied to clipboard
fun getIntercepts(lowerBound: Float, upperBound: Float): FloatArray?
fun getIntercepts(lowerBound: Float, upperBound: Float, paint: Paint?): FloatArray?

Returns the number of intervals that intersect bounds. bounds describes a pair of lines parallel to the text advance. The return array size is a multiple of two, and is at most twice the number of glyphs in the the blob.

Link copied to clipboard
open operator override fun iterator(): Iterator<TextBlob.TextBlobIter.Run>
Link copied to clipboard
Link copied to clipboard
expect open override fun toString(): String