[subset] Rename codepoint -> unicode in subset plan api
This commit is contained in:
parent
1b5a2e0809
commit
f6071c16b0
|
@ -773,7 +773,7 @@ hb_subset_plan_destroy
|
||||||
hb_subset_plan_set_user_data
|
hb_subset_plan_set_user_data
|
||||||
hb_subset_plan_get_user_data
|
hb_subset_plan_get_user_data
|
||||||
hb_subset_plan_execute_or_fail
|
hb_subset_plan_execute_or_fail
|
||||||
hb_subset_plan_codepoint_to_old_glyph_mapping
|
hb_subset_plan_unicode_to_old_glyph_mapping
|
||||||
hb_subset_plan_new_to_old_glyph_mapping
|
hb_subset_plan_new_to_old_glyph_mapping
|
||||||
hb_subset_plan_old_to_new_glyph_mapping
|
hb_subset_plan_old_to_new_glyph_mapping
|
||||||
hb_subset_or_fail
|
hb_subset_or_fail
|
||||||
|
|
|
@ -640,7 +640,7 @@ hb_subset_plan_new_to_old_glyph_mapping (const hb_subset_plan_t *plan)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* hb_subset_plan_codepoint_to_old_glyph_mapping:
|
* hb_subset_plan_unicode_old_glyph_mapping:
|
||||||
* @plan: a subsetting plan.
|
* @plan: a subsetting plan.
|
||||||
*
|
*
|
||||||
* Returns the mapping between codepoints in the original font and the
|
* Returns the mapping between codepoints in the original font and the
|
||||||
|
@ -652,7 +652,7 @@ hb_subset_plan_new_to_old_glyph_mapping (const hb_subset_plan_t *plan)
|
||||||
* Since: REPLACEME
|
* Since: REPLACEME
|
||||||
**/
|
**/
|
||||||
const hb_map_t*
|
const hb_map_t*
|
||||||
hb_subset_plan_codepoint_to_old_glyph_mapping (const hb_subset_plan_t *plan)
|
hb_subset_plan_unicode_to_old_glyph_mapping (const hb_subset_plan_t *plan)
|
||||||
{
|
{
|
||||||
return plan->codepoint_to_glyph;
|
return plan->codepoint_to_glyph;
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,7 +171,7 @@ HB_EXTERN const hb_map_t*
|
||||||
hb_subset_plan_new_to_old_glyph_mapping (const hb_subset_plan_t *plan);
|
hb_subset_plan_new_to_old_glyph_mapping (const hb_subset_plan_t *plan);
|
||||||
|
|
||||||
HB_EXTERN const hb_map_t*
|
HB_EXTERN const hb_map_t*
|
||||||
hb_subset_plan_codepoint_to_old_glyph_mapping (const hb_subset_plan_t *plan);
|
hb_subset_plan_unicode_to_old_glyph_mapping (const hb_subset_plan_t *plan);
|
||||||
|
|
||||||
|
|
||||||
HB_EXTERN hb_subset_plan_t *
|
HB_EXTERN hb_subset_plan_t *
|
||||||
|
|
|
@ -178,7 +178,7 @@ test_subset_plan (void)
|
||||||
g_assert (hb_map_get (mapping, 1) == 1);
|
g_assert (hb_map_get (mapping, 1) == 1);
|
||||||
g_assert (hb_map_get (mapping, 2) == 3);
|
g_assert (hb_map_get (mapping, 2) == 3);
|
||||||
|
|
||||||
mapping = hb_subset_plan_codepoint_to_old_glyph_mapping (plan);
|
mapping = hb_subset_plan_unicode_to_old_glyph_mapping (plan);
|
||||||
g_assert (hb_map_get (mapping, 0x63) == 3);
|
g_assert (hb_map_get (mapping, 0x63) == 3);
|
||||||
|
|
||||||
hb_face_t* face_abc_subset = hb_subset_plan_execute_or_fail (plan);
|
hb_face_t* face_abc_subset = hb_subset_plan_execute_or_fail (plan);
|
||||||
|
|
Loading…
Reference in New Issue