[subset] Remove hb_subset_input_get/set_retain_gids.

This commit is contained in:
Garret Rieger 2021-06-09 16:18:39 -07:00
parent 77b4a1cd96
commit 942636ae13
9 changed files with 10 additions and 41 deletions

View File

@ -326,30 +326,6 @@ hb_subset_input_set_flag (hb_subset_input_t *input,
} }
} }
/**
* hb_subset_input_set_retain_gids:
* @subset_input: a subset_input.
* @retain_gids: If true the subsetter will not renumber glyph ids.
* Since: 2.4.0
**/
HB_EXTERN void
hb_subset_input_set_retain_gids (hb_subset_input_t *subset_input,
hb_bool_t retain_gids)
{
subset_input->retain_gids = retain_gids;
}
/**
* hb_subset_input_get_retain_gids:
* Returns: value of retain_gids.
* Since: 2.4.0
**/
HB_EXTERN hb_bool_t
hb_subset_input_get_retain_gids (hb_subset_input_t *subset_input)
{
return subset_input->retain_gids;
}
HB_EXTERN void HB_EXTERN void
hb_subset_input_set_name_legacy (hb_subset_input_t *subset_input, hb_subset_input_set_name_legacy (hb_subset_input_t *subset_input,
hb_bool_t name_legacy) hb_bool_t name_legacy)

View File

@ -94,13 +94,6 @@ hb_subset_input_set_flag (hb_subset_input_t *input,
// TODO(garretrieger): remove bool property get/set methods. // TODO(garretrieger): remove bool property get/set methods.
HB_EXTERN void
hb_subset_input_set_retain_gids (hb_subset_input_t *subset_input,
hb_bool_t retain_gids);
HB_EXTERN hb_bool_t
hb_subset_input_get_retain_gids (hb_subset_input_t *subset_input);
HB_EXTERN void HB_EXTERN void
hb_subset_input_set_name_legacy (hb_subset_input_t *subset_input, hb_subset_input_set_name_legacy (hb_subset_input_t *subset_input,
hb_bool_t name_legacy); hb_bool_t name_legacy);

View File

@ -302,7 +302,7 @@ test_subset_cff1_retaingids (void)
hb_set_add (codepoints, 'a'); hb_set_add (codepoints, 'a');
hb_set_add (codepoints, 'c'); hb_set_add (codepoints, 'c');
input = hb_subset_test_create_input (codepoints); input = hb_subset_test_create_input (codepoints);
hb_subset_input_set_retain_gids (input, true); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_RETAIN_GIDS, true);
face_abc_subset = hb_subset_test_create_subset (face_abc, input); face_abc_subset = hb_subset_test_create_subset (face_abc, input);
hb_set_destroy (codepoints); hb_set_destroy (codepoints);
@ -325,7 +325,7 @@ test_subset_cff1_j_retaingids (void)
hb_set_add (codepoints, 0x41); hb_set_add (codepoints, 0x41);
hb_set_add (codepoints, 0x4C2E); hb_set_add (codepoints, 0x4C2E);
input = hb_subset_test_create_input (codepoints); input = hb_subset_test_create_input (codepoints);
hb_subset_input_set_retain_gids (input, true); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_RETAIN_GIDS, true);
face_41_3041_4c2e_subset = hb_subset_test_create_subset (face_41_3041_4c2e, input); face_41_3041_4c2e_subset = hb_subset_test_create_subset (face_41_3041_4c2e, input);
hb_set_destroy (codepoints); hb_set_destroy (codepoints);

View File

@ -150,7 +150,7 @@ test_subset_cff2_retaingids (void)
hb_set_add (codepoints, 'a'); hb_set_add (codepoints, 'a');
hb_set_add (codepoints, 'c'); hb_set_add (codepoints, 'c');
input = hb_subset_test_create_input (codepoints); input = hb_subset_test_create_input (codepoints);
hb_subset_input_set_retain_gids (input, true); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_RETAIN_GIDS, true);
face_abc_subset = hb_subset_test_create_subset (face_abc, input); face_abc_subset = hb_subset_test_create_subset (face_abc, input);
hb_set_destroy (codepoints); hb_set_destroy (codepoints);

View File

@ -321,7 +321,7 @@ test_subset_glyf_retain_gids (void)
hb_set_add (codepoints, 99); hb_set_add (codepoints, 99);
hb_subset_input_t *input = hb_subset_test_create_input (codepoints); hb_subset_input_t *input = hb_subset_test_create_input (codepoints);
hb_subset_input_set_retain_gids (input, true); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_RETAIN_GIDS, true);
face_abc_subset = hb_subset_test_create_subset (face_abc, input); face_abc_subset = hb_subset_test_create_subset (face_abc, input);
hb_set_destroy (codepoints); hb_set_destroy (codepoints);
@ -345,7 +345,7 @@ test_subset_glyf_retain_gids_truncates (void)
hb_set_add (codepoints, 97); hb_set_add (codepoints, 97);
hb_subset_input_t *input = hb_subset_test_create_input (codepoints); hb_subset_input_t *input = hb_subset_test_create_input (codepoints);
hb_subset_input_set_retain_gids (input, true); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_RETAIN_GIDS, true);
face_abc_subset = hb_subset_test_create_subset (face_abc, input); face_abc_subset = hb_subset_test_create_subset (face_abc, input);
hb_set_destroy (codepoints); hb_set_destroy (codepoints);

View File

@ -79,7 +79,7 @@ test_subset_gvar_retaingids (void)
hb_set_add (codepoints, 'a'); hb_set_add (codepoints, 'a');
hb_set_add (codepoints, 'c'); hb_set_add (codepoints, 'c');
hb_subset_input_t *input = hb_subset_test_create_input (codepoints); hb_subset_input_t *input = hb_subset_test_create_input (codepoints);
hb_subset_input_set_retain_gids (input, true); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_RETAIN_GIDS, true);
face_abc_subset = hb_subset_test_create_subset (face_abc, input); face_abc_subset = hb_subset_test_create_subset (face_abc, input);
hb_set_destroy (codepoints); hb_set_destroy (codepoints);

View File

@ -79,7 +79,7 @@ test_subset_map_HVAR_retaingids (void)
hb_set_add (codepoints, 'a'); hb_set_add (codepoints, 'a');
hb_set_add (codepoints, 'c'); hb_set_add (codepoints, 'c');
hb_subset_input_t *input = hb_subset_test_create_input (codepoints); hb_subset_input_t *input = hb_subset_test_create_input (codepoints);
hb_subset_input_set_retain_gids (input, true); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_RETAIN_GIDS, true);
face_abc_subset = hb_subset_test_create_subset (face_abc, input); face_abc_subset = hb_subset_test_create_subset (face_abc, input);
hb_set_destroy (codepoints); hb_set_destroy (codepoints);
@ -160,7 +160,7 @@ test_subset_identity_HVAR_retaingids (void)
hb_set_add (codepoints, 'a'); hb_set_add (codepoints, 'a');
hb_set_add (codepoints, 'c'); hb_set_add (codepoints, 'c');
hb_subset_input_t *input = hb_subset_test_create_input (codepoints); hb_subset_input_t *input = hb_subset_test_create_input (codepoints);
hb_subset_input_set_retain_gids (input, true); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_RETAIN_GIDS, true);
face_abc_subset = hb_subset_test_create_subset (face_abc, input); face_abc_subset = hb_subset_test_create_subset (face_abc, input);
hb_set_destroy (codepoints); hb_set_destroy (codepoints);

View File

@ -79,7 +79,7 @@ test_subset_VVAR_retaingids (void)
hb_set_add (codepoints, 'a'); hb_set_add (codepoints, 'a');
hb_set_add (codepoints, 'c'); hb_set_add (codepoints, 'c');
hb_subset_input_t *input = hb_subset_test_create_input (codepoints); hb_subset_input_t *input = hb_subset_test_create_input (codepoints);
hb_subset_input_set_retain_gids (input, true); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_RETAIN_GIDS, true);
face_abc_subset = hb_subset_test_create_subset (face_abc, input); face_abc_subset = hb_subset_test_create_subset (face_abc, input);
hb_set_destroy (codepoints); hb_set_destroy (codepoints);

View File

@ -18,7 +18,7 @@ trySubset (hb_face_t *face,
hb_subset_input_t *input = hb_subset_input_create_or_fail (); hb_subset_input_t *input = hb_subset_input_create_or_fail ();
if (!input) return; if (!input) return;
hb_subset_input_set_flag (input, HB_SUBSET_FLAG_HINTING, !drop_hints); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_HINTING, !drop_hints);
hb_subset_input_set_retain_gids (input, retain_gids); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_RETAIN_GIDS, retain_gids);
hb_set_t *codepoints = hb_subset_input_unicode_set (input); hb_set_t *codepoints = hb_subset_input_unicode_set (input);
if (!drop_layout) if (!drop_layout)