PaintCompat

public final class PaintCompat
extends Object

java.lang.Object
   ↳ 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.

Inherited methods

Public methods

hasGlyph

public 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.

Parameters
paint Paint: the paint instance to check

string String: the string to test whether there is glyph support

Returns
boolean true if the typeface set on the given paint has a glyph for the string