mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 15:31:05 +01:00
API to get number of variation deltas from the buffer
This commit is contained in:
1 parent
0d468e1cd8
commit
eceafff63b
2 files changed
+22
No files matched your search
@@ -2477,6 +2477,25 @@ hb_buffer_get_glyph_variation_delta (hb_buffer_t *buffer,
|
||||
return buffer->get_variation_delta (glyph_index, axis_index);
|
||||
}
|
||||
|
||||
/**
|
||||
* hb_buffer_get_variation_deltas_num_coords:
|
||||
* @buffer: An #hb_buffer_t
|
||||
*
|
||||
* Returns the number of variation axes currently configured for
|
||||
* per-glyph delta storage, or 0 if not configured.
|
||||
*
|
||||
* Return value: The number of variation axes
|
||||
*
|
||||
* Since: REPLACEME
|
||||
**/
|
||||
unsigned int
|
||||
hb_buffer_get_variation_deltas_num_coords (hb_buffer_t *buffer)
|
||||
{
|
||||
if (!buffer)
|
||||
return 0;
|
||||
return buffer->num_coords_deltas;
|
||||
}
|
||||
|
||||
bool
|
||||
hb_buffer_t::message_impl (hb_font_t *font, const char *fmt, va_list ap)
|
||||
{
|
||||
|
||||
@@ -887,6 +887,9 @@ hb_buffer_get_glyph_variation_delta (hb_buffer_t *buffer,
|
||||
unsigned int glyph_index,
|
||||
unsigned int axis_index);
|
||||
|
||||
HB_EXTERN unsigned int
|
||||
hb_buffer_get_variation_deltas_num_coords (hb_buffer_t *buffer);
|
||||
|
||||
|
||||
HB_END_DECLS
|
||||
|
||||
|
||||
Reference in new issue
Block a user