getIntercepts

fun getIntercepts(lowerBound: Float, upperBound: Float): 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.

Return

intersections; may be null

Parameters

lowerBound

lower line parallel to the advance

upperBound

upper line parallel to the advance


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.

Return

intersections; may be null

Parameters

lowerBound

lower line parallel to the advance

upperBound

upper line parallel to the advance

paint

specifies stroking, PathEffect that affects the result; may be null