Our DNA is written in Swift

DTCoreText 1.5.2

I’ve got a bunch of fixes and enhancements released in DTCoreText 1.5.2 today. Special thanks to Antiloop who sponsored the improvements for handling of padding inside lists.


Changes in 1.5.1

  • FIXED: Attributes “bleeding” into next paragraph

Changes in 1.5.2

  • FIXED: Crash on parsing HTML with additional tags following HTML end tag
  • FIXED: DTAttributedLabel problems being instantiated from NIB, ignoring edge insets
  • FIXED: Crash on using font-family “inherit” together with font-variant “small-caps”.
  • FIXED: Endless loop when using a text block that would not fully fit in a height-constrained layout frame
  • FIXED: Image Attachment ignoring maximum display size if width/height are set via tag attributes
  • FIXED: Invalid font-size would cause Core Text font size of 12px to be used.
  • [Sponsored] CHANGED: Lists now correctly use padding and margin. If you specify too small a margin for the list prefix to fit, then the list prefix is omitted.

Contrary to how HTML browsers are displaying list prefixes (e.g. bullets) Core Text cannot draw outside of the laid out lines. This limitation became apparent if you specified a too large list indent margin to fit the prefix. Then the text would spill over the too closely set tab stops and be indented to the next standard tab stop. To prevent this from happening I implemented a check that tests to see if the margin is sufficiently wide to fit the prefix excluding white space.

The new version is tagged and available on the GitHub master branch. A new spec has been added to the CocoaPods public repository.

Ecoline Screenshot

This release has one sponsor, as highlighted. Austrian company Antiloop is doing Ruby on Rails, iPhone and iPad development. They are big fans of DTCoreText and are using it in several apps, including:

Both apps make great use of rich text and are free downloads on the Apple App Store.

Tagged as:

Categories: Updates


Leave a Comment

%d bloggers like this: