Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

PaintCompat

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

Helper for accessing features in Paint.

Summary

Public methods
static Boolean
hasGlyph(@NonNull paint: Paint, @NonNull 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(@NonNull paint: Paint, @NonNull 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