Skip to content
Commits on Feb 18, 2013
  1. @odrobnik

    Updated DTFoundation ref

    odrobnik committed
  2. @odrobnik
  3. @odrobnik

    Add font also to empty paragraphs

    odrobnik committed
    Fixes #301
  4. @odrobnik

    Added unit test for #301

    odrobnik committed
Commits on Feb 17, 2013
  1. @odrobnik

    Updated DTFoundation

    odrobnik committed
  2. @odrobnik

    Added all Unicode space constants

    odrobnik committed
    ... and exempt them from ignorable whitespace text chunks. Without this a text block previously a text block that consisted of say a UNICODE_HAIR_SPACE and normal space would be considered ignorable.
    
    I'm hoping that this addresses #300
  3. @odrobnik

    Increase hyperlink height to be line frame height

    odrobnik committed
    This is how Mobile Safari appears to do it and it also reduces the likelihood that a superscript part might stick out from under the hit highlight rectangle.
  4. @odrobnik

    avoid DTLinkButton frame from becoming non-integer

    odrobnik committed
    ... due to self-adjusting to achieve minimum hit target size specified
  5. @odrobnik

    Changed variables to prevent side effect

    odrobnik committed
    If a glyph run was strike out and underlined the previous method would get incorrect position for underline.
  6. @odrobnik

    Fixed DTLinkButton problem with superscript text

    odrobnik committed
    When using custom drawing for normal and highlighted text and the text had superscript then there were several problems:
    - underline of superscripted text was positioned incorrectly
    - underlines of a part would always extend for the entire width, instead of just be as wide as one glyph run
  7. @odrobnik

    Replaced CGUTils with DTUTils

    odrobnik committed
    This was a left-over of moving DTVersion, DTHTMLParser and other functions into DTFoundation. DTUtils is the documented cleaned up successor to CGUtils.
  8. @odrobnik
  9. @odrobnik

    Added NL

    odrobnik committed
  10. @odrobnik

    Updated referenced DTFoundation

    odrobnik committed
  11. @odrobnik
Commits on Feb 16, 2013
  1. @odrobnik
  2. @odrobnik

    Added unit test for #299

    odrobnik committed
Commits on Feb 15, 2013
  1. @odrobnik

    Fixed: using iOS 6 compatibly attributes the underline color would be…

    odrobnik committed
    … always black
    
    The code that determines the color for underline and strikeout would only look at kCTForegroundColorAttributeName, but not consider NSForegroundColorAttributeName.
    
    closes #297
  2. @odrobnik

    added notifications to DTLazyImageView

    odrobnik committed
    - use these for showing a network activity indicator.
    - we suggest you look at UIApplication+DTNetworkActivity.h (part of DTFoundation) where you can bind the start notification to the push and the end notification to the pop
    
    closes #298
  3. @odrobnik

    DTHTMLWriter improvements

    odrobnik committed
    - the style of A tags was duplicate in the class as well as in a local style attribute
    - added class deduplication for text attachments. size info is kept as local style, the rest (only vertical alignment for now) is now in class
    
    fixes #296
  4. @Vaseltior

    Adding new line at end of file

    Vaseltior committed
  5. @Vaseltior

    modifcation

    Vaseltior committed
  6. @Vaseltior
  7. @Vaseltior
Commits on Feb 14, 2013
  1. @odrobnik

    Added font default size

    odrobnik committed
Commits on Feb 11, 2013
  1. @odrobnik

    Updated DTFoundation reference

    odrobnik committed
  2. @odrobnik

    Fixes

    odrobnik committed
Commits on Feb 10, 2013
  1. @odrobnik
  2. @odrobnik

    Completed Documentation

    odrobnik committed
    I finally got around to adding all remaining items that where flagged by AppleDoc.
Commits on Feb 9, 2013
  1. @odrobnik

    Added more documentation

    odrobnik committed
    Completed documentation on
    
    - DTAttributedTextView
    - DTAttributedTextContentView
    - DTDictationPlaceholderView
    - and a few more
Commits on Feb 7, 2013
  1. @odrobnik

    Workaround that fixes #173

    odrobnik committed
    On the first line of a layout Frame I check if there are any text attachments. And if yes then the maximum ascender of the attachments becomes the line height and no other things are added except a paragraph spacing before.
  2. @odrobnik
  3. @weiran

    Updated link attribute constant to use 'NSLinkAttributeName' instead …

    weiran committed
    …of 'DTLink'. This adds compatibility with OHAttributedLabel.
  4. @odrobnik

    remove self-resizing of content view

    odrobnik committed
    DTAttributedTextContentView no longer self-resizes due to layout changes. If you are using it directly without DTAttributedTextView (which adds scrolling) then you have to first set the attributedString and then you have two options to know the optimal frame:
    
    - You have subscribed to DTAttributedTextContentViewDidFinishLayoutNotification which communicates the optimal frame rect in the OptimalFrame value of the userInfo
    - You call sizeToFit. This gets the size from sizeThatFits: which in turn gets it from intrinsicContentSize.
    
    closes #102
  5. @odrobnik

    Added caching of generated layout frames

    odrobnik committed
    The goal of these changes is to have the DTCoreTextLayouter cache generated layout frames for a given string, range and frame. This way layout for e.g. DTAtt
    ributedTextCells is only done once per width. i.e. twice for portrait and landscape. The same cached frame will also be used for the suggestedFrameSizeToFitEntireStringConstraintedToWidth of DTAttributedTextContentView.
    
    In short suggestedFrameSizeToFitEntireStringConstraintedToWidth now creates a temporary rectangle which is the bounds inset by the edgeInsets and height set
     to open-ended. As long as you don't change the frame the same layoutFrame can be reused. Caching occurs in DTCoreTextLayouter, as generally one layouter = one attributed string.
    
    This should fix #284 - not wrapping correctly for plain style. I changed the demo to use plain style and it wraps ok.
    It should also fix #237 since the requiredRowHeightInTableView now always uses the same layoutFrame as the cell will use later on
    Finally it also deals with one aspect of #102 as caching the layout frame allows for efficient getting of the needed frame.
    
    The final piece to solving #102 is to remove the super.frame from -relayoutText in DTAttributedTextContentView. This method is called if:
    
    - width or height changes and the matching relayoutMask is set
    - a new attributedString is set
    - new edge insets are set (note though that when using DTAttributedTextView now the scrollView contentInset is used instead
    
    I imagine that the contentView might send a notification if relayoutText occurs to be able to adjust the contentSize and adjust the content view height to match. The second scenario would be to manually call sizeToFit if you want to get a view that matches its contents perfectly.
Something went wrong with that request. Please try again.