Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Apr 2, 2013
  1. Refactored relayout after lazy image loading into DTAttributedTextView.

    Without an extra setNeedsLayout an lazy image would not show up since we switched to a tiled layer for the content view and inside scrollviews the scroll view is responsible for the lay outing of just the visible custom subviews.
    This reduces the code to put into lazyImageView:didChangeImageSize:. I also change the sizing behavior for zero size attachments. They still request a subview now.
    Fixes #368
  2. request subview for attachment, even if frame size is zero

    This way a lazily loaded image view gets a chance.
  3. remove setting attachment of unknown original size to max image size

    This was originally set to {1,1}, later maxImageSize. By not being Zero a custom subview for an image would get a chance to be loaded lazily, e.g. with DTLazyImageView. This behavior was changed since now a subview is also requested for a subview with size zero.
  4. @leehericks

    Fixes -layoutSubviewsInRect: so DTDictationPlaceholderView is inserte…

    leehericks authored
    …d for DTDictationPlaceholderTextAttachment even when the textDelegate property has not be set and/or when various delegate methods have not been implemented.
Commits on Mar 30, 2013
  1. Load available fonts into override table

    Now the +initialize of DTCoreTextFontDescriptor gets a list of all available fonts and registers them in the override table. This way fonts can be found even if they are not registered in the override plist, in fact the override plist can be reduced or omitted.
    This fixes a problem on iOS 5 where some fonts could not be matched if their family name contained a space.
    Fixes #365
  2. removed disabled caching

Commits on Mar 29, 2013
  1. Updated DTFoundation ref

  2. removed comments

  3. Merge pull request #360 from yifan/master

    add support for css files reference in html
Commits on Mar 27, 2013
  1. only truncate lines up to the end of the current paragraph, so that t…

    Richard Mazorodze authored
    …he paragraph below does not get rendered in the truncated line
  2. @yifan

    use isFileURL instead

    yifan authored
Commits on Mar 26, 2013
  1. @yifan
Commits on Mar 25, 2013
  1. @yifan
  2. @yifan

    support css file

    yifan authored
Commits on Mar 24, 2013
  1. added test case comment

  2. Ignore !important CSS tag

    fixes #358
  3. Added unit test for #358

Commits on Mar 23, 2013
  1. Added unit test for #342

Commits on Mar 21, 2013
  1. implemented setting a hyperlink active color

    Either specify a color in the parsing options with DTDefaultLinkHighlightColor (text or color) or specify a:active in stylesheet.
  2. [BREAKING] removed custom string drawing from DTLinkButton

    Warning: this breaks the previous implementation approach to set attributedString and highlightedAttributedString properties. New new method is to set two different images for normal and highlighted, see DemoTextViewController implementation.
  3. Added contentImageWithBounds:options: method

    This can be used to get an image for normal and highlighted hyperlink buttons.
Commits on Mar 20, 2013
  1. Improved underline and strike-out drawing.

    Modified to avoid anti-aliasing by rounding pixels taking the context scale into account.
    related to #351
Commits on Mar 16, 2013
Commits on Mar 15, 2013
  1. Optimize Shadow drawing

    - Related to #345
    - for text with no shadow only the glyph run is drawn
    - for text with 1 shadow this is set and the glyph run is drawn
    - for text with more than 1 shadow an area is clipped, 100 pixel wider in all directions
      - then the text position is moved outside that area and the shadow gets an additional offset in the other direction
      - this way only the shadow is drawn
      - except for the very last shadow, there the text position is moved back and the glyph run is drawn together with the last shadow
  2. @rdougan

    Remove CGContextBeginTransparencyLayer for shadows. Instead, give tex…

    rdougan authored
    …t an offset and then remove that same offset from the shadow, making it visible and the text not.
  3. @rdougan
Something went wrong with that request. Please try again.