<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hello Andrea<br><br>Well thanks to your help, it works now!<br><br><div><div id="SkyDrivePlaceholder"></div><br>> Kind of, he needs to flush the drawing operations with cairo_surface_flush().<br>> <br>> http://cairographics.org/manual/cairo-cairo-surface-t.html#cairo-surface-flush<br>> <br><br>Indeed a proper call to 'cairo_surface_flush(surface)' before calling 'cairo_image_surface_get_data (surface)' ws necessary<br><br>> You're trying to draw a very big text string on a very small image.<br>> I would suggest you to start using a big destination and a default font.<br>> <br><br>I had to adjust a bit but this was quite ok<br><br>> Saving to png can help you check if the image content is what you need it to be.<br>> For this kind of debugging purposes, cairo provides cairo_surface_write_to_png()<br>> http://cairographics.org/manual/cairo-PNG-Support.html#cairo-surface-write-to-png<br><br>This was not necessary hopefully <br><br>> This is basically the same as (the cairo part of) your code, except<br>> that it starts the text from (0,48), making it visible.<br>> (If you define FIXED to 0, you get a completely transparent image).<br><br>Yes I had to call cairo_move_to() to have the text at the right place;<br><br>> <br>> If you manage to get the png right, making cairo and GL interact as<br>> desired should only be a matter of choosing the correct pixel format.<br>> <br>> Andrea<br>> <br><br>Many stuff have already been said yesterday; thank you to all of you who helped me so kindly<br><br>Victor<br></div>                                            </div></body>
</html>