Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 20 lines (10 sloc) 1.051 kb
571ae6e @soffes Pretty readme to show off features
soffes authored
1 # NSAttributedString HTML Additions
2
3 This project aims to duplicate the methods present on Mac OSX which allow creation of `NSAttributedString` from HTML code on iOS.
4
5 This is useful for drawing simple rich text like any HTML document without having to use a `UIWebView`.
6
170bbfb @Cocoanetics Restructured and unified attachment handling for img, video, iframe, …
authored
7 Your help is much appreciated. Please send pull requests for useful additions you make or ask me what work is required.
571ae6e @soffes Pretty readme to show off features
soffes authored
8
9 If you find brief test cases where the created `NSAttributedString` differs from the version on OSX please send them to us!
10
11 Follow [@cocoanetics](http://twitter.com/cocoanetics) on Twitter.
f6daeef @Cocoanetics Added note about CoreText loading performance workaround to Readme
authored
12
13
14 KNOWN ISSUES
15
16 CoreText has a problem prior to iOS 5 where it takes around a second on device to initialize its internal font lookup table. You have two workarounds available:
17
18 - trigger the loading on a background thread like shown in http://www.cocoanetics.com/2011/04/coretext-loading-performance/
19 - if you only use certain fonts then add the variants to the DTCoreTextFontOverrides.plist, this speeds up the finding of a specific font face from the font family
Something went wrong with that request. Please try again.