DTCoreText renders HTML into Core Text–backed attributed text on iOS, providing fine control over typography and inline content. It parses a practical subset of HTML/CSS and maps elements to attributed strings, handling fonts, colors, paragraph styles, lists, links, and embedded images or attachments. The layout engine uses Core Text framesetting to produce high-quality text rendering, including proper line breaking, kerning, and ligatures. Developers can plug in custom URL handlers, attachment loaders, and style overrides to adapt rendering to app needs. The library is particularly useful where NSAttributedString from HTML falls short or when you need consistent results across iOS versions. It also exposes hooks to measure, cache, and interact with text runs, making it suitable for rich article views, e-book readers, and mixed media content.

Features

  • Generates NSAttributedString from HTML for use in Core Text rendering
  • Includes UI components: DTAttributedTextView, DTAttributedLabel, and DTAttributedTextCell
  • Provides rich-text rendering capabilities without requiring a WebView
  • Offers online and Xcode-integrated documentation and a programming guide
  • Open-source with BSD-2-Clause license and option to purchase a non-attribution license
  • Actively maintained with nearly 3,000 commits and multiple releases

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

BSD License

Follow DTCoreText

DTCoreText Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of DTCoreText!

Additional Project Details

Operating Systems

Apple iPhone

Programming Language

Objective C

Related Categories

Objective C Frameworks

Registered

2025-09-09