Emoji line height too large
andrew-muzz opened this issue · 0 comments
andrew-muzz commented
Describe the bug
Text height exactly matches UILabel but when the text contains an emoji the line height is too great. UILabel hugs the top of the emoji exactly. Interestingly CTFramesetterSuggestFrameSizeWithConstraints looks to be at fault.
To Reproduce
Steps to reproduce the behavior:
- Create NantesLabel with a string containing one or more emoji
- Note line height is too large giving the effect of a top padding
Expected behavior
Line height should be the same as UILabel
Smartphone (please complete the following information):
- Device: iPhoneXS
- OS: iOS13.3.1
- Version 0.0.9