[subset] temporarily revert previous cmap commit

Required in https://github.com/harfbuzz/harfbuzz/issues/2356
This commit is contained in:
Qunxin Liu 2020-04-24 14:06:13 -07:00 committed by Ebrahim Byagowi
parent 08428a15c3
commit e53c44e326
8 changed files with 6 additions and 5 deletions

View File

@ -238,7 +238,8 @@ struct CmapSubtableFormat4
{ return _.first <= 0xFFFF; }) { return _.first <= 0xFFFF; })
; ;
if (format4_iter.len () == 0) return; //comment off temporarily while we're working on supporting --gids option
//if (format4_iter.len () == 0) return;
unsigned table_initpos = c->length (); unsigned table_initpos = c->length ();
if (unlikely (!c->extend_min (*this))) return; if (unlikely (!c->extend_min (*this))) return;

View File

@ -113,6 +113,7 @@ test_subset_cmap4_no_exceeding_maximum_codepoint (void)
hb_face_destroy (face_origin); hb_face_destroy (face_origin);
} }
/* TEMPORARILY COMMENTED OFF
static void static void
test_subset_cmap_empty_tables (void) test_subset_cmap_empty_tables (void)
{ {
@ -132,6 +133,7 @@ test_subset_cmap_empty_tables (void)
hb_face_destroy (face_abc); hb_face_destroy (face_abc);
hb_face_destroy (face_empty); hb_face_destroy (face_empty);
} }
*/
static void static void
test_subset_cmap_noto_color_emoji_noop (void) test_subset_cmap_noto_color_emoji_noop (void)
@ -186,7 +188,7 @@ main (int argc, char **argv)
hb_test_add (test_subset_cmap_noop); hb_test_add (test_subset_cmap_noop);
hb_test_add (test_subset_cmap_non_consecutive_glyphs); hb_test_add (test_subset_cmap_non_consecutive_glyphs);
hb_test_add (test_subset_cmap4_no_exceeding_maximum_codepoint); hb_test_add (test_subset_cmap4_no_exceeding_maximum_codepoint);
hb_test_add (test_subset_cmap_empty_tables); //hb_test_add (test_subset_cmap_empty_tables);
hb_test_add (test_subset_cmap_noto_color_emoji_noop); hb_test_add (test_subset_cmap_noto_color_emoji_noop);
hb_test_add (test_subset_cmap_noto_color_emoji_non_consecutive_glyphs); hb_test_add (test_subset_cmap_noto_color_emoji_non_consecutive_glyphs);

View File

@ -4,7 +4,6 @@ TESTS = \
tests/cff-full-font.tests \ tests/cff-full-font.tests \
tests/japanese.tests \ tests/japanese.tests \
tests/cff-japanese.tests \ tests/cff-japanese.tests \
tests/cmap.tests \
tests/cmap14.tests \ tests/cmap14.tests \
tests/sbix.tests \ tests/sbix.tests \
tests/colr.tests \ tests/colr.tests \
@ -21,6 +20,7 @@ DISABLED_TESTS = \
tests/layout.gsub3.tests \ tests/layout.gsub3.tests \
tests/layout.gsub6.tests \ tests/layout.gsub6.tests \
tests/layout.gdef.tests \ tests/layout.gdef.tests \
tests/cmap.tests \
$(NULL) $(NULL)
XFAIL_TESTS = \ XFAIL_TESTS = \

View File

@ -13,6 +13,5 @@ acek
あいうえおか あいうえおか
あいう珠度輸 あいう珠度輸
𝜕𝟘AB 𝜕𝟘AB
𥝱

View File

@ -13,7 +13,6 @@ tests = [
'layout.gsub3', 'layout.gsub3',
'layout.gsub6', 'layout.gsub6',
'layout.gdef', 'layout.gdef',
'cmap',
'cmap14', 'cmap14',
'sbix', 'sbix',
'colr', 'colr',