Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bridge CTFontRef directly to UIFont when converting attributes on NSA…
…ttributedString (TextureGroup#1579) In iOS13, there is an issue with the font returned from "-[UIFontj fontWithName:size:]". When asking for "SFUI-Regular" returns "Times New Roman" font. It isn't clear why we were trying to create a new font instance when CTFontRef toll-free bridges to UIFont. This appears to pass tests both internally at Pinterest and Texture so I feel like the change is pretty safe and should also solve the iOS 13 regression users are experiencing.
- Loading branch information