Tommaso Cucinotta wrote:
And, what about ParagraphMetrics.position_, ascent
and discent ?
Ok, they're y coords, they represent the paragraph vertical
dimension and position, but I couldn't really figure out what
are they relative to,
All inset and paragraph coords are absolute WRT the screen. (0,0) is the
top left corner.
and why I always see in the code
*) position()-ascent()
*) position()+descent()
* Position of a paragraph is the baseline of its first row.
* position()-ascent() is the where the paragraph drawing effectively start.
* position()+descent() is the where the paragraph drawing effectively end.
position()-ascent() ________________________
position() XXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXX
position()+descent() ^^^^^^^^^^^^^^^^^^^^^^^^
Hope this helps. Feel free to synthesize all these information and write
some documentation ;-)
Abdel.