summaryrefslogtreecommitdiff
path: root/src/cairo.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-07-28 09:29:46 +0000
committerOwen Taylor <otaylor@redhat.com>2005-07-28 09:29:46 +0000
commitb9fe1b74665e528e6114bd833028a8f62ecfa869 (patch)
treef00a418b643d4257a246b23e5ec51032771ff7b3 /src/cairo.h
parentd7699f0c072a6820007280a167b86a95adf8a54e (diff)
src/cairo-font.c src/cairoint.h: Define _cairo_font_face_nil. (cairo_font_face_reference, cairo_font_face_destroy cairo_font_face_set_user_data): Handle a nil font face. (cairo_font_face_status): New function.
src/cairo-ft-font.c (cairo_ft_font_face_create_for_pattern): src/cairo-ft-font.c (cairo_ft_font_face_create_for_ft_face): src/cairo-win32-font.c (cairo_win32_font_face_create_for_logfontw): Return _cairo_font_face_nil on out-of-memory. Check return of _cairo_simple_font_face_create(). Error out if font_face has a status. Handle a nil surface.
Diffstat (limited to 'src/cairo.h')
-rw-r--r--src/cairo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo.h b/src/cairo.h
index 5252d2325..2f9bc2841 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -875,6 +875,9 @@ cairo_font_face_reference (cairo_font_face_t *font_face);
void
cairo_font_face_destroy (cairo_font_face_t *font_face);
+cairo_status_t
+cairo_font_face_status (cairo_font_face_t *font_face);
+
void *
cairo_font_face_get_user_data (cairo_font_face_t *font_face,
const cairo_user_data_key_t *key);