From 4d25941315b785f711562216241a674fbfa01509 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sat, 11 Feb 2023 19:25:52 +0200 Subject: [PATCH] [doc] Fix hb_ot_name_[id|predefined]_t Shuffle the docs around, so that the enum values appear in documentation as they now belong to hb_ot_name_predefined_t. The Since field will be misleading now, though. --- src/hb-ot-name.h | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/hb-ot-name.h b/src/hb-ot-name.h index f0f1f2fdc..1105c5a99 100644 --- a/src/hb-ot-name.h +++ b/src/hb-ot-name.h @@ -35,14 +35,6 @@ HB_BEGIN_DECLS /** * hb_ot_name_id_predefined_t: - * - * An enum type representing the pre-defined name IDs. - * - * Since: REPLACEME - **/ - -/** - * hb_ot_name_id_t: * @HB_OT_NAME_ID_COPYRIGHT: Copyright notice * @HB_OT_NAME_ID_FONT_FAMILY: Font Family name * @HB_OT_NAME_ID_FONT_SUBFAMILY: Font Subfamily name @@ -72,14 +64,12 @@ HB_BEGIN_DECLS * @HB_OT_NAME_ID_VARIATIONS_PS_PREFIX: Variations PostScript Name Prefix * @HB_OT_NAME_ID_INVALID: Value to represent a nonexistent name ID. * - * An integral type representing an OpenType 'name' table name identifier. - * There are predefined name IDs, as well as name IDs return from other - * API. These can be used to fetch name strings from a font face. + * An enum type representing the pre-defined name IDs. * * For more information on these fields, see the * [OpenType spec](https://docs.microsoft.com/en-us/typography/opentype/spec/name#name-ids). * - * Since: 2.0.0 + * Since: REPLACEME **/ typedef enum { @@ -113,6 +103,15 @@ typedef enum HB_OT_NAME_ID_INVALID = 0xFFFF } hb_ot_name_id_predefined_t; +/** + * hb_ot_name_id_t: + * + * An integral type representing an OpenType 'name' table name identifier. + * There are predefined name IDs, as well as name IDs return from other + * API. These can be used to fetch name strings from a font face. + * + * Since: 2.0.0 + **/ typedef unsigned int hb_ot_name_id_t;