TextLine

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

distance to reserve above baseline, typically negative

Link copied to clipboard

height of an upper-case letter, zero if unknown, typically negative

Link copied to clipboard

distance to reserve below baseline, typically positive

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

Check if underlying resource is closed.

Link copied to clipboard

distance to add between lines, typically positive or zero

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

height of lower-case 'x', zero if unknown, typically negative

Functions

Link copied to clipboard
expect open fun close()

Free underlying native resource, peer is useless afterwards.

Link copied to clipboard
fun getCoordAtOffset(offset: Int): Float
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
Link copied to clipboard
Link copied to clipboard
expect open override fun toString(): String