[cairo] Trouble with cairomm Context::show_text
Jonathon Jongsma
jonathon at quotidian.org
Wed Jul 23 19:55:46 PDT 2008
On Tue, Jul 22, 2008 at 9:11 AM, Johannes Bauer <dfnsonfsduifb at gmx.de> wrote:
> Hi again,
>
> alright, I did it - I can reproduce the crash with a minimal example. It
> appears to only appear when I call translate/scale before doing the text
> drawing, please see for yourself:
>
> http://johannes-bauer.com/cairo_example.tar.bz2
>
> I'm very eager to hear what you think about it.
>
> Thanks in advance,
> Johannes
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>
I can't say for certain, but I believe that your problem is probably
that you're scaling the surface to a 'unit square' (e.g. the X and the
Y axes go from 0.0 to 1.0) and then you are setting your text size to
30. This means that your text will be 30 times larger than your window
size. I doubt that is what you intended, and I think it probably is
hitting some maximum X server coordinate value and causing the
application to crash. Hope that helps
--
jonner
More information about the cairo
mailing list