TextureGroup / Texture

Smooth asynchronous user interfaces for iOS apps.
https://texturegroup.org/
Other
8.02k stars 1.29k forks source link

[ASEditableTextNode] First line is eating emojis #120

Open garrettmoon opened 7 years ago

garrettmoon commented 7 years ago

From @logicsb on January 30, 2016 20:35

Hi, the ASEditableTextNode component is eating emojis in the first line when using custom font styles

// style of the attributedText
class func feedPostCellContent () -> [String:AnyObject] { // Content
        var style = [NSFontAttributeName: UIFont(name:"MyriadPro-Light", size:14.0)!, NSForegroundColorAttributeName: UIColor.blackColor()]
        let paragraph = NSMutableParagraphStyle()
        paragraph.lineSpacing = 8
        style[NSParagraphStyleAttributeName] = paragraph

        return style
 }

Screenshot: screen shot 2016-01-30 at 6 24 50 pm

Copied from original issue: facebookarchive/AsyncDisplayKit#1154

garrettmoon commented 7 years ago

From @appleguy on February 2, 2016 7:31

Could you try this out with UITextView? That is what this class uses under the hood, and it may well have the same issue. Feel free to check out the implementation, as it is less magical than most other components in the framework… So if there is a bug in the editable node implementation, you could probably help us locate what might be causing it. Unfortunately though, I bet this is just an Apple issue.