提交 30f18039 编写于 作者: E Ebrahim Byagowi

[svg] Rename _svg_create_blob to _glyph_reference_blob_svg

上级 5cb1ce86
......@@ -460,8 +460,10 @@ HB_OT_H_IN
<SECTION>
<FILE>hb-ot-color</FILE>
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
......
......@@ -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;
......
......@@ -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);
}
......@@ -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
......
......@@ -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, "</svg>", 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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册