[AdgText] Do not modify the local matrix for alignment purpose
commit9e7237040c492363b26acf23065ea806724a0d7f
authorNicola Fontana <ntd@entidi.it>
Wed, 9 Mar 2011 22:37:04 +0000 (9 23:37 +0100)
committerNicola Fontana <ntd@entidi.it>
Wed, 9 Mar 2011 22:54:43 +0000 (9 23:54 +0100)
tree67f6d70b1e860c6649f16d20e735c62fda67d728
parent124f9dc8627dc5493cd469cba050ec540dcd833e
[AdgText] Do not modify the local matrix for alignment purpose

The pango library uses the top/left corner as reference for text layout
objects. The cairo "toy" text API uses the bottom/left corner.

To be consistent, the AdgText entity rendering was displaced to match
the AdgToyText implementation by modifying the local matrix. The problem
was this displacement was cumulative and for every invalidate() signal
the AdgText entities were "floating" away.

The new implementation uses a manual translation in the render()
function, avoiding the abuse of the local matrix. Furthermore, corrected
a bug related to this displacement in the extents computation.
src/adg/adg-text.c