[svg] Rename _svg_create_blob to _glyph_reference_blob_svg
This commit is contained in:
parent
5cb1ce8681
commit
30f18039b3
|
@ -460,8 +460,10 @@ HB_OT_H_IN
|
||||||
<SECTION>
|
<SECTION>
|
||||||
<FILE>hb-ot-color</FILE>
|
<FILE>hb-ot-color</FILE>
|
||||||
hb_ot_color_glyph_get_layers
|
hb_ot_color_glyph_get_layers
|
||||||
|
hb_ot_color_glyph_reference_blob_svg
|
||||||
hb_ot_color_has_layers
|
hb_ot_color_has_layers
|
||||||
hb_ot_color_has_palettes
|
hb_ot_color_has_palettes
|
||||||
|
hb_ot_color_has_svg
|
||||||
hb_ot_color_layer_t
|
hb_ot_color_layer_t
|
||||||
hb_ot_color_palette_color_get_name_id
|
hb_ot_color_palette_color_get_name_id
|
||||||
hb_ot_color_palette_flags_t
|
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++)
|
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;
|
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:
|
* @face:
|
||||||
* @glyph:
|
* @glyph:
|
||||||
*
|
*
|
||||||
|
@ -268,7 +268,7 @@ hb_ot_color_has_svg (hb_face_t *face)
|
||||||
* Since: REPLACEME
|
* Since: REPLACEME
|
||||||
*/
|
*/
|
||||||
hb_blob_t *
|
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);
|
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_ot_color_has_svg (hb_face_t *face);
|
||||||
|
|
||||||
HB_EXTERN hb_blob_t *
|
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
|
HB_END_DECLS
|
||||||
|
|
|
@ -377,10 +377,10 @@ test_hb_ot_color_svg (void)
|
||||||
{
|
{
|
||||||
hb_blob_t *blob;
|
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);
|
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;
|
unsigned int length;
|
||||||
const char *data = hb_blob_get_data (blob, &length);
|
const char *data = hb_blob_get_data (blob, &length);
|
||||||
g_assert_cmpuint (length, ==, 146);
|
g_assert_cmpuint (length, ==, 146);
|
||||||
|
@ -388,7 +388,7 @@ test_hb_ot_color_svg (void)
|
||||||
g_assert (strncmp (data + 140, "</svg>", 5) == 0);
|
g_assert (strncmp (data + 140, "</svg>", 5) == 0);
|
||||||
hb_blob_destroy (blob);
|
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);
|
g_assert (hb_blob_get_length (blob) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue