Re: [Gambas-user] Cairo: coordinates

2013-08-20 Thread Rolf-Werner Eilert
Am 20.08.2013 09:28, schrieb Rolf-Werner Eilert: > What confused me a bit when using Cairo was the coordinates system. > > Initiating the page with width = 210 mm and height = 297 mm, I would > expect to be able to center a string of text with > >Cairo.MoveTo((210 / 2) - (Cairo.TextExtents("H

[Gambas-user] Cairo: coordinates

2013-08-20 Thread Rolf-Werner Eilert
What confused me a bit when using Cairo was the coordinates system. Initiating the page with width = 210 mm and height = 297 mm, I would expect to be able to center a string of text with Cairo.MoveTo((210 / 2) - (Cairo.TextExtents("Hello world").Width / 2), 40) for example (in practice, I wou