In message <
b37300880912050732r425...@mail.gmail.com>, Grego
ry Brown writes:
>I never thought I'd see the day, but we're considering the possibility
>of swapping the y axis so that 0 is at the top of the document.
Please yes.
>So... if you have a patch (large or small) that has been accepted into
>any of prawn-core, prawn-layout, prawn-security, or prawn-format,
>please respond with a link to a commit on github for authentication,
>and the following number based on your choice:
I don't think I've done that; all I've done is submit a couple of
patches through the tracker. But you can see my patches (one of which fixes
the indent() function to work with column boxes, which I figure counts for
something) on the tracker.
>Do you think that we should change Prawn's coordinate system so that
>y=0 is at the top of the document?
I'd go with +2 yes.
Here's why: Stretchy bounding boxes.
In a stretchy bounding box, any time you add text, pdf.cursor == 0. This
makes it USELESS to, say, record the current cursor value, then try to move
back to it later.
Basically, y should grow in the same direction that stretchy boxes do, and
I'm pretty sure that stretchy boxes should grow down.
-s