`"😀".length == 2` due to surrogate pairs. This me...
# compose-android
k
"😀".length == 2
due to surrogate pairs. This means
TextMeasurer.measure("😀")
also returns two bounding boxes. Any idea how to only get back bounding boxes that matter?
z
@Halil Ozercan
The second bounding box is empty right? That’s how you know it doesn’t matter.
👍 1
k
They have a zero width, yes. It's getting complicated when there are only emojis, since some of them are even combinations of multiple emojis, but I think I made it work by measuring each emoji separately