Move hb_font_get_var_coords_design behind HB_EXPERIMENTAL_API

This commit is contained in:
Ebrahim Byagowi 2020-04-17 20:12:24 +04:30
parent 41c671e701
commit 9b7fb5c23f
4 changed files with 9 additions and 2 deletions

View File

@ -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)

View File

@ -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
/*

View File

@ -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,

View File

@ -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