[ot-shape] Add hb_ot_shape_get_buffer_format_serial() (#5857)

This commit is contained in:
Khaled Hosny authored and GitHub committed 2026-03-18 10:24:52 -06:00
1 parent 5fc1d612f9
commit 257769a9d2
3 files changed
+33

No files matched your search

+2
View File
@@ -786,6 +786,8 @@ hb_ot_metrics_tag_t
<SECTION>
<FILE>hb-ot-shape</FILE>
HB_OT_SHAPE_BUFFER_FORMAT_SERIAL
hb_ot_shape_get_buffer_format_serial
hb_ot_shape_glyphs_closure
</SECTION>
+16
View File
@@ -1328,4 +1328,20 @@ hb_ot_shape_glyphs_closure (hb_font_t *font,
}
/**
* hb_ot_shape_get_buffer_format_serial:
*
* Returns the serial number of the current internal buffer format.
* See #HB_OT_SHAPE_BUFFER_FORMAT_SERIAL for more information.
*
* Return value: The current buffer-format serial number.
*
* XSince: REPLACEME
**/
unsigned int
hb_ot_shape_get_buffer_format_serial (void)
{
return HB_OT_SHAPE_BUFFER_FORMAT_SERIAL;
}
#endif
+15
View File
@@ -54,6 +54,21 @@ hb_ot_shape_plan_get_feature_tags (hb_shape_plan_t *shape_plan,
unsigned int *tag_count, /* IN/OUT */
hb_tag_t *tags /* OUT */);
/**
* HB_OT_SHAPE_BUFFER_FORMAT_SERIAL:
*
* The serial number of the current internal buffer format.
*
* The serial number will increase when internal #hb_glyph_info_t and
* #hb_glyph_position_t members change their format.
*
* XSince: REPLACEME
*/
#define HB_OT_SHAPE_BUFFER_FORMAT_SERIAL 1
HB_EXTERN unsigned int
hb_ot_shape_get_buffer_format_serial (void);
HB_END_DECLS
#endif /* HB_OT_SHAPE_H */