summaryrefslogtreecommitdiff
path: root/src/cairo-user-font.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2008-05-30 15:18:22 -0400
committerBehdad Esfahbod <behdad@behdad.org>2008-05-30 15:18:22 -0400
commitfbe7044f10c2d36f1ee4e1edd3d3289e0cad8779 (patch)
treed3dedec7b8238f35483980c0b3caec49932ce5ca /src/cairo-user-font.c
parent45be1459b2b8f7fab124fe6c773944618bd5e046 (diff)
[user-font] Improve docs.
Diffstat (limited to 'src/cairo-user-font.c')
-rw-r--r--src/cairo-user-font.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cairo-user-font.c b/src/cairo-user-font.c
index 8c92a93f..8969100d 100644
--- a/src/cairo-user-font.c
+++ b/src/cairo-user-font.c
@@ -428,6 +428,12 @@ _cairo_font_face_is_user (cairo_font_face_t *font_face)
* Use the setter functions to associate callbacks with the returned
* user font. The only mandatory callback is render_glyph.
*
+ * After the font-face is created, the user can attach arbitrary data
+ * (the actual font data) to it using cairo_font_face_set_user_data()
+ * and access it from the user-font callbacks by using
+ * cairo_scaled_font_get_font_face() followed by
+ * cairo_font_face_get_user_data().
+ *
* Return value: a newly created #cairo_font_face_t. Free with
* cairo_font_face_destroy() when you are done using it.
*