summaryrefslogtreecommitdiff
path: root/src/cairoint.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-06-19 11:15:30 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-06-19 11:20:48 +0100
commitd3330d7beba0e0d2543e40a0e0e4d81ea9a78b45 (patch)
tree01ebb085aa7d926b68209acc9fbdef9253f460d9 /src/cairoint.h
parent6d8b353658da1ad973e3bda9e89799a7467d8182 (diff)
[ft] Substitute twin if there are no fonts
Fixes bug 22356 -- Spurious "out of memory" error on system without fonts https://bugs.freedesktop.org/show_bug.cgi?id=22356 If FcFontMatch() fails, then it means that there are no fonts available on the system (or it may have been a malloc error, we have no way of telling). Instead of report NO_MEMORY and disabling all drawing, one of the rationales for including a builtin font was so that we could continue even in the face of this error and show *something* to the user. (This being a last resort (and especially important for demos!) and hopefully easier to diagnose than no output at all.)
Diffstat (limited to 'src/cairoint.h')
-rw-r--r--src/cairoint.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairoint.h b/src/cairoint.h
index 6b125946..3d6acc19 100644
--- a/src/cairoint.h
+++ b/src/cairoint.h
@@ -1435,6 +1435,9 @@ _cairo_unscaled_font_destroy (cairo_unscaled_font_t *font);
/* cairo-font-face-twin.c */
+cairo_private cairo_font_face_t *
+_cairo_font_face_twin_create_fallback (void);
+
cairo_private cairo_status_t
_cairo_font_face_twin_create_for_toy (cairo_toy_font_face_t *toy_face,
cairo_font_face_t **font_face);