[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.
This commit is contained in:
Khaled Hosny 2023-02-11 19:25:52 +02:00 committed by خالد حسني (Khaled Hosny)
parent 13741e68f8
commit 4d25941315
1 changed files with 11 additions and 12 deletions

View File

@ -35,14 +35,6 @@ HB_BEGIN_DECLS
/** /**
* hb_ot_name_id_predefined_t: * 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_COPYRIGHT: Copyright notice
* @HB_OT_NAME_ID_FONT_FAMILY: Font Family name * @HB_OT_NAME_ID_FONT_FAMILY: Font Family name
* @HB_OT_NAME_ID_FONT_SUBFAMILY: Font Subfamily 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_VARIATIONS_PS_PREFIX: Variations PostScript Name Prefix
* @HB_OT_NAME_ID_INVALID: Value to represent a nonexistent name ID. * @HB_OT_NAME_ID_INVALID: Value to represent a nonexistent name ID.
* *
* An integral type representing an OpenType 'name' table name identifier. * An enum type representing the pre-defined name IDs.
* 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.
* *
* For more information on these fields, see the * For more information on these fields, see the
* [OpenType spec](https://docs.microsoft.com/en-us/typography/opentype/spec/name#name-ids). * [OpenType spec](https://docs.microsoft.com/en-us/typography/opentype/spec/name#name-ids).
* *
* Since: 2.0.0 * Since: REPLACEME
**/ **/
typedef enum typedef enum
{ {
@ -113,6 +103,15 @@ typedef enum
HB_OT_NAME_ID_INVALID = 0xFFFF HB_OT_NAME_ID_INVALID = 0xFFFF
} hb_ot_name_id_predefined_t; } 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; typedef unsigned int hb_ot_name_id_t;