Comment 24 for bug 116236

Revision history for this message
In , Freedesktop (freedesktop) wrote :

commit 79d975f84bcc32e91db517d71a7312e2e1d653d4
Author: Behdad Esfahbod <email address hidden>
Date: Wed Sep 12 17:45:11 2007 -0400

    [cairo-ft-font] Ignore FT_Load_Glyph errors other than out-of-memory
    Same for FT_Render_Glyph.

    When the user asks us to render a glyph that is not available in the font,
    it's mostly an unavoidable kind of error for them, as in, they can't
    avoid such a call. So it's not nice to put cairo_t in an error state and
    refuse any further drawying.

    Many PDF files are created using buggy software and cause such glpyh-not-found
    errors for CID 0 for example.

    Eventually we should propagate these kind of errors up and return it from
    the function call causing it, but that needs API change to add return value
    to all text functions, so for now we just ignore these errors.