Add cache for defaultStyleSheet
Updated: use __unsafe_unretained and fix key from CTParagraphStyleRef
…unsafe_unretained to be compatible with ios4 and ios5; fix key of CTParagraphStyleRef by remove address info
Need __block for ios4 for block weak ref in DTAttributedTextContentView.m
Request a pull of a memory issue fix in DTAttributedTextContentView.m when using block
…; 2)set target to 5.0.
Replacing the paragraph style attribute requires that we remove the previous attribute first or else CoreText does not release the previous CTParagraphStyleRef. Fixed in iOS 5.0. closes #160
Fix iOS unit test file - its missing a header
…ing images that were cached.
because it not properly deal with non-empty paragraph.
Some header changes. Closes #157
fixes a problem with Retina iPad where a shorter line would previous cause the loop to exit too early
…ble in Chinese locale. This would cause the bold chinese font to be used for glyphs in a non-bold font if you choose Chinese locale. Fixes #104
Add support for kCTParagraphStyleSpecifierParagraphSpacingBefore property
The merging of the href would cause the images to be merged as well. Now the creation of the link GUIDs happens when the link property of a HTML element is set and will be transferred to all child elements. This way a href that consists of text, image, text still gets the same link GUID.
…ceBefore property Three things are changed: 1, In _correctLineOrigins previousLine == nil is allowed to trigger paragraphSpaceBefore test. 2, isLineFirstInParagraph is added to check if the target line is the first line in some paragraph.
Actually make -parser:foundCDATA: optional. This was left over test code. Good catch!
this should fix a compiler warning see http://developer.apple.com/legacy/mac/library/#documentation/DeveloperTools/gcc-3.3/gcc/compatibility_005falias.html #147
This would fail for some custom fonts which don't have the slant value properly set. So we actually inspect the traits instead of the matching font.