[var] Add hb_font_get_var_coords_normalized()
authorBehdad Esfahbod <behdad@behdad.org>
Sat, 21 Jan 2017 22:48:46 +0000 (14:48 -0800)
committerBehdad Esfahbod <behdad@behdad.org>
Sat, 21 Jan 2017 22:48:46 +0000 (14:48 -0800)
src/hb-font.cc
src/hb-font.h

index b91a35b67110b9e7ee54db6daec726beee19d98a..a8b9e4c3bf760ed4bfbb3d750f7a20bfb8455861 100644 (file)
@@ -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
 
index 8813286726b4a2e612cf83726f01d244afeb7dae..5f22331b68bf665d7904088ed64f000fe6f9d3d3 100644 (file)
@@ -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 */