Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emoji line height too large #53

Open
andrew-muzz opened this issue Mar 2, 2020 · 0 comments
Open

Emoji line height too large #53

andrew-muzz opened this issue Mar 2, 2020 · 0 comments

Comments

@andrew-muzz
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant