cairo text extent weirdness
This one has me really puzzled...
I have created a cairo text extents variable, like this
I have used it set the font, fontsize etc... and the text renders perfectly.
I need to use the width of the bounding box in another placement of graphics. but te.width appears to keep changing. when I run the following code the compiler spits out 24.0 on one run, 34 on another, 54 on another. I feel like maybe its looking at the memory address. Any ideas?
printf("cairo text extent is %f",te3.width);