From 3993a407037477e384650a1394c27c15596c9a45 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 22 Dec 2022 23:55:27 -0500 Subject: [PATCH] test: Add some verification hints --- test/api/test-ot-color.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/test/api/test-ot-color.c b/test/api/test-ot-color.c index cd292d12e..1bf287c58 100644 --- a/test/api/test-ot-color.c +++ b/test/api/test-ot-color.c @@ -692,10 +692,16 @@ typedef struct { #define TEST_GLYPHS "fonts/test_glyphs-glyf_colr_1.ttf" #define ROCHER_ABC "fonts/RocherColorGX.abc.ttf" +/* To verify the rendering visually, use + * + * hb-view --font-size SCALE --font-slant SLANT --font-palette PALETTE FONT TEXT + * + * where TEXT is as mentioned below. + */ static colrv1_test_t colrv1_tests[] = { /* COLRv1 */ - { NOTO_HAND, 20, 0., 10, 0, "hand-20-0-10" }, - { NOTO_HAND, 20, 0.2, 10, 0, "hand-20-0.2-10" }, + { NOTO_HAND, 20, 0., 10, 0, "hand-20-0-10" }, // ✍️ + { NOTO_HAND, 20, 0.2, 10, 0, "hand-20-0.2-10" }, // ✍️ { TEST_GLYPHS, 20, 0, 6, 0, "test-20-0-6" }, { TEST_GLYPHS, 20, 0, 10, 0, "test-20-0-10" }, { TEST_GLYPHS, 20, 0, 92, 0, "test-20-0-92" }, @@ -705,9 +711,9 @@ static colrv1_test_t colrv1_tests[] = { { TEST_GLYPHS, 20, 0, 165, 0, "test-20-0-165" }, { TEST_GLYPHS, 20, 0, 175, 0, "test-20-0-175" }, /* COLRv0 */ - { ROCHER_ABC, 120, 0.3, 1, 0, "rocher-20-0.3-1" }, - { ROCHER_ABC, 120, 0.3, 2, 2, "rocher-20-0-2" }, - { ROCHER_ABC, 120, 0, 3, 200, "rocher-20-0-3" }, + { ROCHER_ABC, 120, 0.3, 1, 0, "rocher-20-0.3-1" }, // A + { ROCHER_ABC, 120, 0.3, 2, 2, "rocher-20-0-2" }, // B + { ROCHER_ABC, 120, 0, 3, 200, "rocher-20-0-3" }, // C }; static void