Hi, Jeff- Thanks for the thoughtful questions.
On 6/5/13 11:01 AM, Jeff Schiller wrote: > > I guess that height would also be needed for vertical fonts? Yes. CSS is a bit clumsy there, unlike XSL-FO, but as improvements come on the internationalization front in CSS, SVG would just inherit those "for free". > I think I saw you mention that in one of your links... I can't > really figure out how this would work for a <text> with a mixture of > spans of horizontal / vertical text, but that's why I don't write > specs! :) That's a good question; I reckon the answer is that it would work just as with an HTML <p> with a mix of vertical and horizontal <span>s. The output might not be pretty (just as it may not with HTML), but the behavior should be no different. > What if a <text> element has a <textPath> in it? If a word on a path > would be displayed outside of the text's width, what should happen? Another excellent question. There are two options: 1) All text in SVG is "flattened" (e.g., virtually removed from its containing child elements, such as <tspan> or <textPath>), and laid out according to the parent <text> width; 2) <textPath> content is not treated as part of the text layout, and follows its own rules. I favor the latter. What about you? BTW, we had planned to allow the <textPath> element to stand alone in SVG 2, with no need for a containing <text> element parent, as part of an overall simplification of the language for authors; what do you think about that? > Would the whitespace property work with this (i.e. what values, if > any, would be supported for the CSS whitespace property)? > > Would overflow-wrap/word-wrap: break-word work with this? (i.e. for > words that are longer than the text area is wide) > > Would any of these CSS properties be supported: line-break, > word-break, hyphens? The answer to all of these is the same: SVG text would be part of the CSS box model, with all the flexibility that CSS offers for text layout, most likely including margins and padding (but probably not floats). This includes whitespace, overflow (and scroll), and hyphenation. Regards- -Doug ------------------------------------ ----- To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: svg-developers-dig...@yahoogroups.com svg-developers-fullfeatu...@yahoogroups.com <*> To unsubscribe from this group, send an email to: svg-developers-unsubscr...@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/