Hi Damon, Thanks for the advice. I have decided to give Pango a try. After giving it some thought, I figured the best approach might me to create a GooCanvasGroupModel for each of my schematic symbols which would contain my canvas item and a GooCanvasTextModel. If I do this I don't need to re-invent the wheel with the Pango text stuff. Is there any reason why I could not pack such a group model into a GooCanvasTableModel? Regards, Richard. Damon Chaplin wrote: On Fri, 2008-08-15 at 13:36 +0100, Damon Chaplin wrote:On Fri, 2008-08-15 at 21:27 +1000, Richard Gipps wrote:Hi, I have created several of my own Canvas Items which are based very heavily on GooCanvasRectModel. I have used these items in a GooCanvasTable. I recently added some text to these canvas items using the "Toy" text API in Cairo and functions such as cairo_show_text(). This worked well and would render as I expected. The problem comes when one moves the mouse over/into the table items containing the text. When this happens some spurious text is rendered outside the table area. This problem is best illustrated using the picture I have attached. The R1 to the far left is the spurious text. I have drawn rectangles around the canvas items for clarity. One can cover the canvas and expose it again and this text "disappears" but as soon as the mouse is moved over the canvas item the spurious text is drawn again. Anyone have any ideas?It sounds like a problem positioning the text. Maybe in your code or in GooCanvasTable. If you want to send me a test app I'll have a look at it.Actually since everything else in the table seems to be painting OK, I'd guess it is either a problem with your code, or with the toy text API. Maybe try using Pango instead. Damon |