Is there a compose equivalent to `Paint.hasGlyph()...
# compose-android
m
z
Nope. Feel free to file a feature request. What are you trying to do?
m
I’m showing large full width (Chinese) characters (one per Text composable). I’d like to detect whether the glyph is supported by the (user-configured) font so I can show something more useful (e.g. write the hex codepoint in its place) rather than the usual tall empty rectangle.
In the days before
Paint.hasGlyph()
I used to check by drawing the character to a bitmap and comparing with the bitmap of a known codepoint with unsupported glyph!
@Zach Klippenstein (he/him) [MOD] should I file it on the Android issuetracker?
z
Yes please