From 283ab21841553ed00f2db0a037313ccf1141784d Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Thu, 27 Mar 2025 22:14:58 +0000 Subject: [PATCH] [subset] remove CFF/CFF2 table presence checks. Not needed now that we are checking accelerator validity. --- src/hb-subset.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/hb-subset.cc b/src/hb-subset.cc index b1e4d82aa..5dc6cb240 100644 --- a/src/hb-subset.cc +++ b/src/hb-subset.cc @@ -748,10 +748,6 @@ static hb_blob_t* get_charstrings_data(accel_t& accel, hb_codepoint_t glyph_inde **/ HB_EXTERN hb_blob_t* hb_subset_cff_get_charstring_data(hb_face_t* face, hb_codepoint_t glyph_index) { - if (!_is_table_present(face, HB_TAG('C', 'F', 'F', ' '))) { - return hb_blob_get_empty (); - } - return get_charstrings_data(*face->table.cff1, glyph_index); } @@ -766,10 +762,6 @@ static hb_blob_t* get_charstrings_data(accel_t& accel, hb_codepoint_t glyph_inde **/ HB_EXTERN hb_blob_t* hb_subset_cff2_get_charstring_data(hb_face_t* face, hb_codepoint_t glyph_index) { - if (!_is_table_present(face, HB_TAG('C', 'F', 'F', '2'))) { - return hb_blob_get_empty (); - } - return get_charstrings_data(*face->table.cff2, glyph_index); } #endif \ No newline at end of file