PaintCompat

Helper for accessing features in Paint.

Functions

Link copied to clipboard
open fun hasGlyph(@NonNull paint: @NonNull Paint, @NonNull string: @NonNull String): Boolean
Determine whether the typeface set on the paint has a glyph supporting the string in a backwards compatible way.
Link copied to clipboard
open fun setBlendMode(@NonNull paint: @NonNull Paint, @Nullable blendMode: @Nullable BlendModeCompat): Boolean
Configure the corresponding BlendMode on the given paint.