diff --git a/docs/harfbuzz-sections.txt b/docs/harfbuzz-sections.txt index 7bca7ca2064241f343c4ec5c13891332070b7dc6..c385984a7e7ec17e5c4737ec5b57054e517ed337 100644 --- a/docs/harfbuzz-sections.txt +++ b/docs/harfbuzz-sections.txt @@ -460,8 +460,10 @@ HB_OT_H_IN
hb-ot-color hb_ot_color_glyph_get_layers +hb_ot_color_glyph_reference_blob_svg hb_ot_color_has_layers hb_ot_color_has_palettes +hb_ot_color_has_svg hb_ot_color_layer_t hb_ot_color_palette_color_get_name_id hb_ot_color_palette_flags_t diff --git a/src/dump-emoji.cc b/src/dump-emoji.cc index 1603d2d98f40b38021f1ede7ce47f283058c5c3e..c4710a6296538f65fed3d8c7eb9d0812dcc22584 100644 --- a/src/dump-emoji.cc +++ b/src/dump-emoji.cc @@ -75,7 +75,7 @@ svg_dump (hb_face_t *face) for (unsigned int glyph_id = 0; glyph_id < glyph_count; glyph_id++) { - hb_blob_t *blob = hb_ot_color_glyph_svg_create_blob (face, glyph_id); + hb_blob_t *blob = hb_ot_color_glyph_reference_blob_svg (face, glyph_id); if (hb_blob_get_length (blob) == 0) continue; diff --git a/src/hb-ot-color.cc b/src/hb-ot-color.cc index 3d9f1c1ba59eb2d6a9dd8a13a5ca76c21d6dbea9..283b3a1e5b0fe80da0378b66cdd5e07a6f91f8e6 100644 --- a/src/hb-ot-color.cc +++ b/src/hb-ot-color.cc @@ -259,7 +259,7 @@ hb_ot_color_has_svg (hb_face_t *face) } /** - * hb_ot_color_glyph_svg_create_blob: + * hb_ot_color_glyph_reference_blob_svg: * @face: * @glyph: * @@ -268,7 +268,7 @@ hb_ot_color_has_svg (hb_face_t *face) * Since: REPLACEME */ hb_blob_t * -hb_ot_color_glyph_svg_create_blob (hb_face_t *face, hb_codepoint_t glyph) +hb_ot_color_glyph_reference_blob_svg (hb_face_t *face, hb_codepoint_t glyph) { return _get_svg (face).reference_blob_for_glyph (glyph); } diff --git a/src/hb-ot-color.h b/src/hb-ot-color.h index 259c84987e2a6ba4f3133559d3f53e3db2e7b966..fb9a9e3704e120b381ade7497e9edf4e96fa83e9 100644 --- a/src/hb-ot-color.h +++ b/src/hb-ot-color.h @@ -119,7 +119,7 @@ HB_EXTERN hb_bool_t hb_ot_color_has_svg (hb_face_t *face); HB_EXTERN hb_blob_t * -hb_ot_color_glyph_svg_create_blob (hb_face_t *face, hb_codepoint_t glyph); +hb_ot_color_glyph_reference_blob_svg (hb_face_t *face, hb_codepoint_t glyph); HB_END_DECLS diff --git a/test/api/test-ot-color.c b/test/api/test-ot-color.c index 13a25b0b8fe2a2362b911442fc70d872117399d4..4ffadeec07fac02e9ad617de56b0a4cb6fac1c0f 100644 --- a/test/api/test-ot-color.c +++ b/test/api/test-ot-color.c @@ -377,10 +377,10 @@ test_hb_ot_color_svg (void) { hb_blob_t *blob; - blob = hb_ot_color_glyph_svg_create_blob (svg, 0); + blob = hb_ot_color_glyph_reference_blob_svg (svg, 0); g_assert (hb_blob_get_length (blob) == 0); - blob = hb_ot_color_glyph_svg_create_blob (svg, 1); + blob = hb_ot_color_glyph_reference_blob_svg (svg, 1); unsigned int length; const char *data = hb_blob_get_data (blob, &length); g_assert_cmpuint (length, ==, 146); @@ -388,7 +388,7 @@ test_hb_ot_color_svg (void) g_assert (strncmp (data + 140, "", 5) == 0); hb_blob_destroy (blob); - blob = hb_ot_color_glyph_svg_create_blob (empty, 0); + blob = hb_ot_color_glyph_reference_blob_svg (empty, 0); g_assert (hb_blob_get_length (blob) == 0); }