[doc] Workaround gtk-doc limitation with HB_DEPRECATED_FOR

See https://github.com/harfbuzz/harfbuzz/issues/3957#issuecomment-1356890525
This commit is contained in:
Khaled Hosny 2022-12-19 00:39:35 +02:00 committed by خالد حسني (Khaled Hosny)
parent 734e5f7cf4
commit bc4c290b75
3 changed files with 16 additions and 8 deletions

View File

@ -102,7 +102,8 @@ typedef hb_bool_t (*hb_font_get_glyph_func_t) (hb_font_t *font, void *font_data,
hb_codepoint_t *glyph, hb_codepoint_t *glyph,
void *user_data); void *user_data);
HB_EXTERN HB_DEPRECATED_FOR(hb_font_funcs_set_nominal_glyph_func and hb_font_funcs_set_variation_glyph_func) void HB_DEPRECATED_FOR (hb_font_funcs_set_nominal_glyph_func and hb_font_funcs_set_variation_glyph_func)
HB_EXTERN void
hb_font_funcs_set_glyph_func (hb_font_funcs_t *ffuncs, hb_font_funcs_set_glyph_func (hb_font_funcs_t *ffuncs,
hb_font_get_glyph_func_t func, hb_font_get_glyph_func_t func,
void *user_data, hb_destroy_func_t destroy); void *user_data, hb_destroy_func_t destroy);

View File

@ -49,7 +49,8 @@ hb_graphite2_face_get_gr_face (hb_face_t *face);
#ifndef HB_DISABLE_DEPRECATED #ifndef HB_DISABLE_DEPRECATED
HB_EXTERN HB_DEPRECATED_FOR (hb_graphite2_face_get_gr_face) gr_font * HB_DEPRECATED_FOR (hb_graphite2_face_get_gr_face)
HB_EXTERN gr_font *
hb_graphite2_font_get_gr_font (hb_font_t *font); hb_graphite2_font_get_gr_font (hb_font_t *font);
#endif #endif

View File

@ -67,26 +67,30 @@ HB_BEGIN_DECLS
/* Like hb_ot_layout_table_find_script, but takes zero-terminated array of scripts to test */ /* Like hb_ot_layout_table_find_script, but takes zero-terminated array of scripts to test */
HB_EXTERN HB_DEPRECATED_FOR (hb_ot_layout_table_select_script) hb_bool_t HB_DEPRECATED_FOR (hb_ot_layout_table_select_script)
HB_EXTERN hb_bool_t
hb_ot_layout_table_choose_script (hb_face_t *face, hb_ot_layout_table_choose_script (hb_face_t *face,
hb_tag_t table_tag, hb_tag_t table_tag,
const hb_tag_t *script_tags, const hb_tag_t *script_tags,
unsigned int *script_index, unsigned int *script_index,
hb_tag_t *chosen_script); hb_tag_t *chosen_script);
HB_EXTERN HB_DEPRECATED_FOR (hb_ot_layout_script_select_language) hb_bool_t HB_DEPRECATED_FOR (hb_ot_layout_script_select_language)
HB_EXTERN hb_bool_t
hb_ot_layout_script_find_language (hb_face_t *face, hb_ot_layout_script_find_language (hb_face_t *face,
hb_tag_t table_tag, hb_tag_t table_tag,
unsigned int script_index, unsigned int script_index,
hb_tag_t language_tag, hb_tag_t language_tag,
unsigned int *language_index); unsigned int *language_index);
HB_EXTERN HB_DEPRECATED_FOR (hb_ot_tags_from_script_and_language) void HB_DEPRECATED_FOR (hb_ot_tags_from_script_and_language)
HB_EXTERN void
hb_ot_tags_from_script (hb_script_t script, hb_ot_tags_from_script (hb_script_t script,
hb_tag_t *script_tag_1, hb_tag_t *script_tag_1,
hb_tag_t *script_tag_2); hb_tag_t *script_tag_2);
HB_EXTERN HB_DEPRECATED_FOR (hb_ot_tags_from_script_and_language) hb_tag_t HB_DEPRECATED_FOR (hb_ot_tags_from_script_and_language)
HB_EXTERN hb_tag_t
hb_ot_tag_from_language (hb_language_t language); hb_ot_tag_from_language (hb_language_t language);
@ -121,13 +125,15 @@ typedef struct hb_ot_var_axis_t {
float max_value; float max_value;
} hb_ot_var_axis_t; } hb_ot_var_axis_t;
HB_EXTERN HB_DEPRECATED_FOR (hb_ot_var_get_axis_infos) unsigned int HB_DEPRECATED_FOR (hb_ot_var_get_axis_infos)
HB_EXTERN unsigned int
hb_ot_var_get_axes (hb_face_t *face, hb_ot_var_get_axes (hb_face_t *face,
unsigned int start_offset, unsigned int start_offset,
unsigned int *axes_count /* IN/OUT */, unsigned int *axes_count /* IN/OUT */,
hb_ot_var_axis_t *axes_array /* OUT */); hb_ot_var_axis_t *axes_array /* OUT */);
HB_EXTERN HB_DEPRECATED_FOR (hb_ot_var_find_axis_info) hb_bool_t HB_DEPRECATED_FOR (hb_ot_var_find_axis_info)
HB_EXTERN hb_bool_t
hb_ot_var_find_axis (hb_face_t *face, hb_ot_var_find_axis (hb_face_t *face,
hb_tag_t axis_tag, hb_tag_t axis_tag,
unsigned int *axis_index, unsigned int *axis_index,