diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2017-01-21 14:48:46 -0800 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2017-01-21 14:48:46 -0800 |
commit | bf0d3a665baac9e33c0f774b22197c321b864c80 (patch) | |
tree | a4873837292deaadb13582d323f8e4860a437cb6 | |
parent | b3c0714b4bbb726b2b3e5e0416ac84cb5c6eb34e (diff) | |
download | harfbuzz_ng-bf0d3a665baac9e33c0f774b22197c321b864c80.tar.gz |
[var] Add hb_font_get_var_coords_normalized()
-rw-r--r-- | src/hb-font.cc | 10 | ||||
-rw-r--r-- | src/hb-font.h | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/hb-font.cc b/src/hb-font.cc index b91a35b67..a8b9e4c3b 100644 --- a/src/hb-font.cc +++ b/src/hb-font.cc @@ -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 diff --git a/src/hb-font.h b/src/hb-font.h index 881328672..5f22331b6 100644 --- a/src/hb-font.h +++ b/src/hb-font.h @@ -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 */ |