In article <slrnjol6eg....@bowser.marioworld>,
Ben C <spam...@spam.eggs> wrote:
> On 2012-04-13, dorayme <
dor...@optusnet.com.au> wrote:
> [...]
> > Basically, I would say, yes. Suppose the corners are so rounded that
> > the rectangle makes out like it is a frustrated circle. What exactly
> > should justified text - to dramatize for both sides - do? Follow, on
> > the inside, the contours? That would be neat (like is possible in
> > image programs). But I don't think it is so sophisticated in CSS3. As
> > Jonathan says, you have to make adjustments elsewhere.
> >
> > You put it well, the text behaves as if it is in a rectangle proper.
> > The rounded corners are an enhancement that mimics the technique of
> > slapping bits of sector images in the corners on top of the basic
> > rectangle.
>
> Yes, text is still laid out in rectangles as you have all found, and I
> think that's actually what most people would want most of the time.
>
> If you do want to justify text against a curved edge you can put a bunch
> of floats in like those Eric Meyer "slantastic" demos.
>
> Like this:
>
>
http://tidraso.co.uk/misc/circle.html
>
> But what do you want doing with the six or so lines that overflow the
> whole circle at the bottom?
You really try not to have any?
> And what is your design for circular scroll
> bars?
>
Now funny you should ask, I was just in my workshop working on a mouse
with a little steering wheel gismo on the top, turning clockwise gets
the text to scroll within circles... the text at the top disappears
and text from the bottom comes up into view, all adjusting to the area
and needed wraps. Turning the wheel anti-clockwise, it goes the other
way. On trackpads you would use funny finger gestures (checking to see
no one was looking, of course).
The way to go with a regular mouse cursor would be a variation of what
happens when you add overflow: auto; to your div. It is, of course,
badly handled by browsers. The circle gets a right straight edge! I
mean, really! In a forthcoming z gen browser it will look more
elegant, the scroller will not interfere with the circle but just
neatly follow the curve on the right. Something like:
<
http://dorayme.netweaver.com.au/justPics/curvy_scrollbar.jpg>
> >> I'm at a loss as to understand why it appears that a rounded border is
> >> something that doesn't "cut off" the corners rather than just be window
> >> dressing.
> >>
> >
> > Perhaps too difficult to code for in browsers? Perhaps they were
> > thinking along the lines of the old techniques of images masking the
> > corners and that would be good enough for now.
>
> It wouldn't look nice-- I'd rather the first letter of the first line
> overlapped the border a little bit than got indented.
>
> > Imagine how tricky to tell the text to follow the curves? The browser
> > would need to calculate just where to wrap to follow the curve down,
> > different lines of text having different widths to expand or contract
> > into.
>
> It wouldn't be too hard, because browsers already have to do that to
> avoid floats-- they have to reconsider how much width is available
> before putting in each line.
As I said, image programs do it easily enough, in Photoshop you just
draw the shape you want and you use the area text tool and click and
type away:
<
http://dorayme.netweaver.com.au/aliceInTheRound.html>
I think if I wanted round boxes and text, I might well be tempted by
an image, including of the text to save a lot of trouble. Especially
for small notices and the like.
btw, CSS justified text rarely looks good anywhere, perhaps you might
agree? I mentioned it only to highlight the problem of trying to get
text to hug curves.
--
dorayme