From f9e1192d58e54f6719993a1694aee0a73198d63d Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 18 Dec 2022 23:58:36 +0200 Subject: [PATCH] [ot-tag] Document two deprecated symbols See https://github.com/harfbuzz/harfbuzz/issues/3957 --- src/hb-ot-tag.cc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/hb-ot-tag.cc b/src/hb-ot-tag.cc index f6ba3b0d4..d0123d8ea 100644 --- a/src/hb-ot-tag.cc +++ b/src/hb-ot-tag.cc @@ -119,6 +119,17 @@ hb_ot_new_tag_to_script (hb_tag_t tag) } #ifndef HB_DISABLE_DEPRECATED +/** + * hb_ot_tags_from_script: + * @script: an #hb_script_t to convert. + * @script_tag_1: (out): output #hb_tag_t. + * @script_tag_2: (out): output #hb_tag_t. + * + * Converts an #hb_script_t to script tags. + * + * Since: 0.6.0 + * Deprecated: 2.0.0: use hb_ot_tags_from_script_and_language() instead + **/ void hb_ot_tags_from_script (hb_script_t script, hb_tag_t *script_tag_1, @@ -249,6 +260,15 @@ struct LangTag /*{"zh?", {HB_TAG('Z','H','P',' ')}},*/ /* Chinese Phonetic */ #ifndef HB_DISABLE_DEPRECATED +/** + * hb_ot_tag_from_language: + * @language: an #hb_language_t to convert. + * + * Converts an #hb_language_t to an #hb_tag_t. + * + * Since: 0.6.0 + * Deprecated: 2.0.0: use hb_ot_tags_from_script_and_language() instead + **/ hb_tag_t hb_ot_tag_from_language (hb_language_t language) {