From b32d169d22278a108b0772ab1dc72fd0c344af52 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Sat, 23 May 2020 13:03:06 +0430 Subject: [PATCH] [test] run aat APIs in shape fuzzer --- test/api/test-ot-face.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/api/test-ot-face.c b/test/api/test-ot-face.c index e3d64f627..0e86123a8 100644 --- a/test/api/test-ot-face.c +++ b/test/api/test-ot-face.c @@ -27,6 +27,7 @@ #ifndef TEST_OT_FACE_NO_MAIN #include "hb-test.h" #endif +#include #include /* Unit tests for hb-ot-*.h */ @@ -73,6 +74,15 @@ test_font (hb_font_t *font, hb_codepoint_t cp) hb_ot_color_has_png (face); hb_blob_destroy (hb_ot_color_glyph_reference_png (font, cp)); + hb_aat_layout_feature_type_t feature; + unsigned count = 1; + hb_aat_layout_get_feature_types (face, 0, &count, &feature); + hb_aat_layout_feature_type_get_name_id (face, HB_AAT_LAYOUT_FEATURE_TYPE_CHARACTER_SHAPE); + hb_aat_layout_feature_selector_info_t setting = {0}; + unsigned default_index; + count = 1; + hb_aat_layout_feature_type_get_selector_infos (face, HB_AAT_LAYOUT_FEATURE_TYPE_DESIGN_COMPLEXITY_TYPE, 0, &count, &setting, &default_index); + hb_set_t *lookup_indexes = hb_set_create (); hb_set_add (lookup_indexes, 0); #ifdef HB_EXPERIMENTAL_API