It’s been a while since the previous update to DTCoreText. Now that I mostly finished my book I pulled together a new maintenance release.
Changes
- FIXED: Crash parsing background shorthand containing color
- FIXED: Broken unit test for uncompressing background shorthand
- FIXED: DTAttributeLabel doesn’t use delegate methods to render text from truncationString param
- FIXED: Links parsed from HTML are not recognized in UITextView (using NS-style attributes)
- FIXED: Memory leak in -CGColor method on MacOSX target.
- FIXED: lineHeightMultiple not being transferred to NSParagraphStyle
- FIXED: Warnings related to disparities between properties and ivars
- FIXED: Build issues because submodule did not include 32-bit slice
- FIXED: Crash on iOS 5 due to unguarded selector calling
- FIXED: Warning about deprecated methods using deployment target >= iOS 7
- ADDED: Ability to specify default font face name
- CHANGED: Updated DTFoundation to 1.7.0
Note about bugs occurring on iOS 8 BETA: Please file bug reports with Apple for issues you find while using DTCoreText. There is almost nothing we can do in DTCoreText if methods from Core Text are buggy. Very rarely we can try to find a workaround, but while iOS 8 is in flux it is of major importance that Apple is made aware of new bugs.
To clarify one thing that some people get confused about. If you want to use an attributed string coming out of DTCoreText parsing HTML with UITextView you have to use the DTUseiOS6Attributes parsing option. Without this the classic Core Text kCT* attributes are used. With it, modern NS* attributes will be used. Those are sometimes incompatible and provide less features than their older counterparts, which is why the “old style” attributes will remain the default for the near future.
Thanks go to Jean-Charles Bertin, Adam Schlag, Luca Bartoletti and Marcin Krzyzanowski for their contributions to this release.
The update is tagged on GitHub and also available via CocoaPods.
Categories: Updates