mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-29 09:34:05 +01:00
Merge branch 'master' into var-subset
This commit is contained in:
commit
ea8fdfa079
90 files changed
+1124
-410
No files matched your search
Binary file not shown.
@@ -49,6 +49,27 @@ test_collect_unicodes_format4 (void)
|
||||
hb_face_destroy (face);
|
||||
}
|
||||
|
||||
static void
|
||||
test_collect_unicodes_format12_notdef (void)
|
||||
{
|
||||
hb_face_t *face = hb_test_open_font_file ("fonts/cmunrm.otf");
|
||||
hb_set_t *codepoints = hb_set_create();
|
||||
hb_codepoint_t cp;
|
||||
|
||||
hb_face_collect_unicodes (face, codepoints);
|
||||
|
||||
cp = HB_SET_VALUE_INVALID;
|
||||
g_assert (hb_set_next (codepoints, &cp));
|
||||
g_assert_cmpuint (0x20, ==, cp);
|
||||
g_assert (hb_set_next (codepoints, &cp));
|
||||
g_assert_cmpuint (0x21, ==, cp);
|
||||
g_assert (hb_set_next (codepoints, &cp));
|
||||
g_assert_cmpuint (0x22, ==, cp);
|
||||
|
||||
hb_set_destroy (codepoints);
|
||||
hb_face_destroy (face);
|
||||
}
|
||||
|
||||
static void
|
||||
test_collect_unicodes_format12 (void)
|
||||
{
|
||||
@@ -101,6 +122,7 @@ main (int argc, char **argv)
|
||||
hb_test_add (test_collect_unicodes);
|
||||
hb_test_add (test_collect_unicodes_format4);
|
||||
hb_test_add (test_collect_unicodes_format12);
|
||||
hb_test_add (test_collect_unicodes_format12_notdef);
|
||||
|
||||
return hb_test_run();
|
||||
}
|
||||
Reference in new issue
Block a user