diff --git a/src/gen-def.py b/src/gen-def.py index 7f8a8f653..f89582a8d 100755 --- a/src/gen-def.py +++ b/src/gen-def.py @@ -33,7 +33,8 @@ hb_draw_funcs_set_close_path_func hb_draw_funcs_set_cubic_to_func hb_draw_funcs_set_line_to_func hb_draw_funcs_set_move_to_func -hb_draw_funcs_set_quadratic_to_func""".splitlines () +hb_draw_funcs_set_quadratic_to_func +hb_font_get_var_coords_design""".splitlines () symbols = [x for x in symbols if x not in experimental_symbols] symbols = "\n".join (symbols) diff --git a/src/hb-font.cc b/src/hb-font.cc index 9c732cfee..692b197ba 100644 --- a/src/hb-font.cc +++ b/src/hb-font.cc @@ -2032,13 +2032,14 @@ hb_font_get_var_coords_normalized (hb_font_t *font, return font->coords; } +#ifdef HB_EXPERIMENTAL_API /** * hb_font_get_var_coords_design: * * Return value is valid as long as variation coordinates of the font * are not modified. * - * Since: REPLACEME + * Since: EXPERIMENTAL */ const float * hb_font_get_var_coords_design (hb_font_t *font, @@ -2050,6 +2051,7 @@ hb_font_get_var_coords_design (hb_font_t *font, return font->design_coords; } #endif +#endif #ifndef HB_DISABLE_DEPRECATED /* diff --git a/src/hb-font.h b/src/hb-font.h index fa63edb19..e1a5719f1 100644 --- a/src/hb-font.h +++ b/src/hb-font.h @@ -705,9 +705,11 @@ hb_font_set_var_coords_design (hb_font_t *font, const float *coords, unsigned int coords_length); +#ifdef HB_EXPERIMENTAL_API HB_EXTERN const float * hb_font_get_var_coords_design (hb_font_t *font, unsigned int *length); +#endif HB_EXTERN void hb_font_set_var_coords_normalized (hb_font_t *font, diff --git a/test/api/test-var-coords.c b/test/api/test-var-coords.c index b3aef09e8..4e3e62760 100644 --- a/test/api/test-var-coords.c +++ b/test/api/test-var-coords.c @@ -38,6 +38,7 @@ static void test_get_var_coords (void) { +#ifdef HB_EXPERIMENTAL_API hb_face_t *face = hb_test_open_font_file ("fonts/TestCFF2VF.otf"); hb_font_t *font = hb_font_create (face); @@ -65,6 +66,7 @@ test_get_var_coords (void) hb_font_destroy (font); hb_face_destroy (face); +#endif } static void