Support multiple Shadows in NSHTMLWriter

Originator:oliver.drobnik
Number:rdar://12908144 Date Originated:Dec 19, 2012
Status:Open Resolved:
Product:iPhone SDK Product Version:6.0
Classification:Enhancement Reproducible:Always
 
The current implementation of NSHTMLWriter only supports a single shadow. This shadow is an NSShadow instance set with attribute key NSShadowAttributeName.

NSHTMLWriter maps those core text attributes to their CSS counterparts for display in e.g. UITextView. CSS supports multiple shadows, e.g.

<p style="text-shadow:0.2em 0.5em 0.1em #600,
      -0.3em 0.1em 0.1em #060,
      0.4em -0.3em 0.1em #006">Multiple Shadows</p>


My enhancement request is to allow the NSShadowAttributeName to also be an array of multiple NSShadow instances. Those would simply be transferred to the css style for the span.

This enhancement would make shadows work the same in HTML and CoreText.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!