tobihagemann / THLabel

UILabel subclass, which additionally allows shadow blur, inner shadow, stroke text and fill gradient.
https://tobiha.de
Other
668 stars 110 forks source link

Outer stroke gets messed if text contains emoji #52

Closed sgil closed 3 years ago

sgil commented 3 years ago

See screenshot below for example. Happens with every font and stroke size.

let label = THLabel()
label.text = "hi 😊"
label.strokeSize = 4
label.strokeColor = .black
Screen Shot 2021-06-01 at 12 37 22 PM
tobihagemann commented 3 years ago

I'm unable to reproduce the issue. I used the example project from this repository (main branch). What am I missing?

sgil commented 3 years ago

I'm sorry I was careless with the steps to reproduce. I have narrowed it down to including an emoji in the text, and setting the label's layer's masksToBounds property to false.

I can work around this issue so will close it, and you can reopen if you'd like to track that specific issue.