[var] Add hb_font_get_var_coords_normalized()
This commit is contained in:
parent
b3c0714b4b
commit
bf0d3a665b
|
@ -1565,6 +1565,16 @@ hb_font_set_var_coords_normalized (hb_font_t *font,
|
|||
font->num_coords = coords_length;
|
||||
}
|
||||
|
||||
int *
|
||||
hb_font_get_var_coords_normalized (hb_font_t *font,
|
||||
unsigned int *length)
|
||||
{
|
||||
if (length)
|
||||
*length = font->coords_length;
|
||||
|
||||
return font->coords;
|
||||
}
|
||||
|
||||
|
||||
#ifndef HB_DISABLE_DEPRECATED
|
||||
|
||||
|
|
|
@ -609,6 +609,10 @@ hb_font_set_var_coords_normalized (hb_font_t *font,
|
|||
int *coords, /* XXX 2.14 normalized */
|
||||
unsigned int coords_length);
|
||||
|
||||
HB_EXTERN int *
|
||||
hb_font_get_var_coords_normalized (hb_font_t *font,
|
||||
unsigned int *length);
|
||||
|
||||
HB_END_DECLS
|
||||
|
||||
#endif /* HB_FONT_H */
|
||||
|
|
Loading…
Reference in New Issue