[cairo] Surface error not set when using cairo_show_text() with invalid utf8
behdad at behdad.org
Wed Nov 3 08:22:40 PDT 2010
On 11/02/10 23:54, cu wrote:
> But with current behavior programmer (me) doesn't get a chance to fix
> the error! First of all it is not even set correctly (that's a *bug* and
> it needs to be fixed) - so as a programmer I don't even get notified of
> an error. The only way I see that there was an error is because my cairo
> image is half-empty!
You are supposed to check *before* calling cairo. Many programmers /
applications for example always check text for validity at the point that it
enters their module. Cairo does so. You should do so too.
More information about the cairo