hasGlyph

open fun hasGlyph(@NonNull paint: @NonNull Paint, @NonNull string: @NonNull String): Boolean(source)

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

Return

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

Parameters

paint

the paint instance to check

string

the string to test whether there is glyph support