From b4f34539c26561e35eaa09160784e07cec6b1b9c Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Sat, 20 Jun 2020 00:47:00 +0430 Subject: [PATCH] [fuzzer] test more of ot-layout APIs --- test/api/test-ot-face.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/api/test-ot-face.c b/test/api/test-ot-face.c index 0596e4baf..e2297b23e 100644 --- a/test/api/test-ot-face.c +++ b/test/api/test-ot-face.c @@ -101,6 +101,23 @@ test_font (hb_font_t *font, hb_codepoint_t cp) hb_ot_layout_get_ligature_carets (font, HB_DIRECTION_LTR, cp, 0, NULL, NULL); + { + unsigned temp = 0, temp2; + hb_ot_name_id_t name; + hb_ot_layout_get_size_params (face, &temp, &temp, &name, &temp, &temp); + hb_tag_t cv01 = HB_TAG ('c','v','0','1'); + unsigned feature_index = 0; + hb_ot_layout_language_find_feature (face, HB_OT_TAG_GSUB, 0, + HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX, + cv01, &feature_index); + hb_ot_layout_feature_get_name_ids (face, HB_OT_TAG_GSUB, feature_index, + &name, &name, &name, &temp, &name); + temp = 1; + hb_ot_layout_feature_get_characters (face, HB_OT_TAG_GSUB, feature_index, 0, &temp, &g); + temp = 1; + hb_ot_layout_language_get_feature_indexes (face, HB_OT_TAG_GSUB, 0, 0, 0, &temp, &temp2); + } + hb_ot_math_has_data (face); hb_ot_math_get_constant (font, HB_OT_MATH_CONSTANT_MATH_LEADING); hb_ot_math_get_glyph_italics_correction (font, cp);