diff --git a/doc/public/tmpl/cairo-atsui.sgml b/doc/public/tmpl/cairo-atsui.sgml index 4a8b35aaf..fb9179313 100644 --- a/doc/public/tmpl/cairo-atsui.sgml +++ b/doc/public/tmpl/cairo-atsui.sgml @@ -2,7 +2,7 @@ ATSUI Fonts - +Font support for ATSUI on OS X diff --git a/src/cairo-atsui-font.c b/src/cairo-atsui-font.c index 34560d288..361e787e7 100644 --- a/src/cairo-atsui-font.c +++ b/src/cairo-atsui-font.c @@ -129,6 +129,19 @@ static const cairo_font_face_backend_t _cairo_atsui_font_face_backend = { _cairo_atsui_font_face_scaled_font_create }; +/** + * cairo_atsui_font_face_create_for_atsu_font_id + * @font_id: an ATSUFontID for the font. + * + * Creates a new font for the ATSUI font backend based on an + * #ATSUFontID. This font can then be used with + * cairo_set_font_face() or cairo_scaled_font_create(). + * + * Return value: a newly created #cairo_font_face_t. Free with + * cairo_font_face_destroy() when you are done using it. + * + * Since: 1.4 + **/ cairo_font_face_t * cairo_atsui_font_face_create_for_atsu_font_id (ATSUFontID font_id) {