From 3a2634e27cf6f1df164aacb70b2e107eab2a15e6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 19 Dec 2022 13:48:08 -0500 Subject: [PATCH] [paint] Document hb_font_paint_glyph_func_t --- docs/harfbuzz-sections.txt | 2 ++ src/hb-font.h | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/docs/harfbuzz-sections.txt b/docs/harfbuzz-sections.txt index 1295d60f5..ce079f25d 100644 --- a/docs/harfbuzz-sections.txt +++ b/docs/harfbuzz-sections.txt @@ -450,6 +450,8 @@ hb_font_get_glyph_name_func_t hb_font_funcs_set_glyph_name_func hb_font_get_glyph_shape_func_t hb_font_funcs_set_glyph_shape_func +hb_font_paint_glyph_func_t +hb_font_funcs_set_paint_glyph_func hb_font_get_nominal_glyph_func_t hb_font_funcs_set_nominal_glyph_func hb_font_get_nominal_glyphs_func_t diff --git a/src/hb-font.h b/src/hb-font.h index 693f2b505..9a08bd963 100644 --- a/src/hb-font.h +++ b/src/hb-font.h @@ -513,6 +513,19 @@ typedef void (*hb_font_get_glyph_shape_func_t) (hb_font_t *font, void *font_data hb_draw_funcs_t *draw_funcs, void *draw_data, void *user_data); +/** + * hb_font_paint_glyph_func_t: + * @font: #hb_font_t to work upon + * @font_data: @font user data pointer + * @glyph: The glyph ID to query + * @paint_funcs: The paint functions to use + * @paint_data: The data accompanying the paint functions + * @user_data: User data pointer passed by the caller + * + * A virtual method for the #hb_font_funcs_t of an #hb_font_t object. + * + * Since: REPLACEME + */ typedef void (*hb_font_paint_glyph_func_t) (hb_font_t *font, void *font_data, hb_codepoint_t glyph, hb_paint_funcs_t *paint_funcs, void *paint_data,