[subset] move notdef_outline to the subset input property enum.
This commit is contained in:
parent
a6c6cda486
commit
372722ceee
|
@ -101,7 +101,7 @@ hb_subset_input_create_or_fail ()
|
||||||
HB_TAG ('S', 'T', 'A', 'T'),
|
HB_TAG ('S', 'T', 'A', 'T'),
|
||||||
};
|
};
|
||||||
input->no_subset_tables->add_array (default_no_subset_tables,
|
input->no_subset_tables->add_array (default_no_subset_tables,
|
||||||
ARRAY_LENGTH (default_no_subset_tables));
|
ARRAY_LENGTH (default_no_subset_tables));
|
||||||
|
|
||||||
//copied from _layout_features_groups in fonttools
|
//copied from _layout_features_groups in fonttools
|
||||||
hb_tag_t default_layout_features[] = {
|
hb_tag_t default_layout_features[] = {
|
||||||
|
@ -317,6 +317,8 @@ hb_subset_input_get_flag (hb_subset_input_t *input,
|
||||||
return input->overlaps_flag;
|
return input->overlaps_flag;
|
||||||
case HB_SUBSET_FLAG_PASSTHROUGH_UNRECOGNIZED:
|
case HB_SUBSET_FLAG_PASSTHROUGH_UNRECOGNIZED:
|
||||||
return input->passthrough_unrecognized;
|
return input->passthrough_unrecognized;
|
||||||
|
case HB_SUBSET_FLAG_NOTDEF_OUTLINE:
|
||||||
|
return input->notdef_outline;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -347,6 +349,8 @@ hb_subset_input_set_flag (hb_subset_input_t *input,
|
||||||
case HB_SUBSET_FLAG_PASSTHROUGH_UNRECOGNIZED:
|
case HB_SUBSET_FLAG_PASSTHROUGH_UNRECOGNIZED:
|
||||||
input->passthrough_unrecognized = value;
|
input->passthrough_unrecognized = value;
|
||||||
break;
|
break;
|
||||||
|
case HB_SUBSET_FLAG_NOTDEF_OUTLINE:
|
||||||
|
input->notdef_outline = value;
|
||||||
default:
|
default:
|
||||||
// Do nothing.
|
// Do nothing.
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -47,6 +47,7 @@ typedef enum
|
||||||
HB_SUBSET_FLAG_NAME_LEGACY = 4,
|
HB_SUBSET_FLAG_NAME_LEGACY = 4,
|
||||||
HB_SUBSET_FLAG_SET_OVERLAPS_FLAG = 5,
|
HB_SUBSET_FLAG_SET_OVERLAPS_FLAG = 5,
|
||||||
HB_SUBSET_FLAG_PASSTHROUGH_UNRECOGNIZED = 6,
|
HB_SUBSET_FLAG_PASSTHROUGH_UNRECOGNIZED = 6,
|
||||||
|
HB_SUBSET_FLAG_NOTDEF_OUTLINE = 7,
|
||||||
} hb_subset_flag_t;
|
} hb_subset_flag_t;
|
||||||
|
|
||||||
HB_EXTERN hb_subset_input_t *
|
HB_EXTERN hb_subset_input_t *
|
||||||
|
|
Loading…
Reference in New Issue