From 18f61210a43e2dc4e7001227e37fc899d5af7979 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Thu, 27 May 2021 16:01:17 -0700 Subject: [PATCH] Add public api methods to get/set the layout features to retain. --- src/hb-subset-input.cc | 20 ++++++++++++++++++++ src/hb-subset.h | 9 +++++++++ 2 files changed, 29 insertions(+) diff --git a/src/hb-subset-input.cc b/src/hb-subset-input.cc index 473b728d2..f37ae38f1 100644 --- a/src/hb-subset-input.cc +++ b/src/hb-subset-input.cc @@ -248,6 +248,26 @@ hb_subset_input_namelangid_set (hb_subset_input_t *subset_input) return subset_input->name_languages; } +HB_EXTERN hb_set_t * +hb_subset_input_layout_features_set (hb_subset_input_t *subset_input) +{ + return subset_input->layout_features; +} + +HB_EXTERN void +hb_subset_input_set_retain_all_features (hb_subset_input_t *subset_input, + hb_bool_t value) +{ + subset_input->retain_all_layout_features = value; +} + +HB_EXTERN hb_bool_t +hb_subset_input_get_retain_all_features (hb_subset_input_t *subset_input) +{ + return subset_input->retain_all_layout_features; +} + + HB_EXTERN hb_set_t * hb_subset_input_drop_tables_set (hb_subset_input_t *subset_input) { diff --git a/src/hb-subset.h b/src/hb-subset.h index f4890b1c6..3bccd18dc 100644 --- a/src/hb-subset.h +++ b/src/hb-subset.h @@ -60,6 +60,15 @@ hb_subset_input_nameid_set (hb_subset_input_t *subset_input); HB_EXTERN hb_set_t * hb_subset_input_namelangid_set (hb_subset_input_t *subset_input); +HB_EXTERN hb_set_t * +hb_subset_input_layout_features_set (hb_subset_input_t *subset_input); + +HB_EXTERN void +hb_subset_input_set_retain_all_features (hb_subset_input_t *subset_input, + hb_bool_t value); +HB_EXTERN hb_bool_t +hb_subset_input_get_retain_all_features (hb_subset_input_t *subset_input); + HB_EXTERN hb_set_t * hb_subset_input_drop_tables_set (hb_subset_input_t *subset_input);