Nantes icon indicating copy to clipboard operation
Nantes copied to clipboard

Emoji line height too large

Open andrew-muzz opened this issue 4 years ago • 0 comments

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:

  1. Create NantesLabel with a string containing one or more emoji
  2. Note line height is too large giving the effect of a top padding

Expected behavior Line height should be the same as UILabel

Screenshots IMG_FA6F7CC64E04-1

Smartphone (please complete the following information):

  • Device: iPhoneXS
  • OS: iOS13.3.1
  • Version 0.0.9

andrew-muzz avatar Mar 02 '20 10:03 andrew-muzz