Re: [Fwd: Re: non-rectangular images & <img> tag]

Apropos of another discussion currently going on, it might be  
interesting to examine the performance penalty of allowing wrapping  
around non-rectangular images. Currently, the height of a line cannot  
reduce the length of a line. That is, using floats you can calculate  
the maximum possible width of a line with only the top edge (insert  
other possible edges for other writing directions). If the text had  
to wrap around the contour, the length of the line would depend on  
both the top and bottom edges of the line box. Of course, you won't  
know the bottom edge (in the general case) until you know the  
available length. It seems like a bad idea to introduce the ability  
to modify the length of a line based on the height of its text. While  
there may be simple solutions for some line breaking algorithms (e.g.  
best fit or first fit), it would be difficult to implement using a  
total fit algorithm (i.e. TeX line breaking).


Received on Wednesday, 25 April 2007 16:05:18 UTC