PaintCompat

class PaintCompat
kotlin.Any
   ↳ androidx.core.graphics.PaintCompat

Helper for accessing features in Paint.

Summary

Public methods
static Boolean
hasGlyph(paint: Paint, string: String)

Determine whether the typeface set on the paint has a glyph supporting the string in a backwards compatible way.

Public methods

hasGlyph

static fun hasGlyph(paint: Paint, string: String): Boolean

Determine whether the typeface set on the paint has a glyph supporting the string in a backwards compatible way.

Parameters
paint Paint: the paint instance to check
string Paint: the string to test whether there is glyph support
Return
Boolean: true if the typeface set on the given paint has a glyph for the string