`"๐Ÿ˜€".length == 2` due to surrogate pairs. This means `TextMeasurer.measure("๐Ÿ˜€")` also returns two ...
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