Skip to content
Newer
Older
100644 24 lines (12 sloc) 1.22 KB
571ae6e @soffes Pretty readme to show off features
soffes authored Jan 13, 2011
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
5c366fa @odrobnik Added link to Q&A
odrobnik authored Aug 31, 2011
7 Please read the [Q&A](http://www.cocoanetics.com/2011/08/nsattributedstringhtml-qa/).
8
170bbfb @odrobnik Restructured and unified attachment handling for img, video, iframe, …
odrobnik authored Aug 5, 2011
9 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 Jan 14, 2011
10
11 If you find brief test cases where the created `NSAttributedString` differs from the version on OSX please send them to us!
12
13 Follow [@cocoanetics](http://twitter.com/cocoanetics) on Twitter.
f6daeef @odrobnik Added note about CoreText loading performance workaround to Readme
odrobnik authored Aug 10, 2011
14
15
16 KNOWN ISSUES
17
18 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:
19
20 - trigger the loading on a background thread like shown in http://www.cocoanetics.com/2011/04/coretext-loading-performance/
21 - 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
3e41ffc @odrobnik Updated Readme with new known issue
odrobnik authored Sep 8, 2011
22
23 Some combinations of fonts and unusual list types cause an extra space to appear. e.g. 20 px Courier + Circle
Something went wrong with that request. Please try again.