From 8e6b9ecf4e566b8a1dc624ae3543f0b4eac6efa5 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 12 Mar 2026 01:49:07 -0300 Subject: [PATCH] [test] Add vector coverage for handwriting color fonts Extend the vector regression tests to cover the remaining handwriting fuzzing fonts: sbix, glyf COLRv1, and CFF/CFF2 COLRv1. Reuse the expected output where the CFF and CFF2 variants serialize identically. Assisted-by: OpenAI Codex --- .../expected/basic/handwriting-cff-colr-1.svg | 71 +++++++++++++++++++ .../basic/handwriting-glyf-colr-1.svg | 71 +++++++++++++++++++ .../data/expected/basic/handwriting-sbix.svg | 12 ++++ test/vector/data/tests/basic.tests | 4 ++ 4 files changed, 158 insertions(+) create mode 100644 test/vector/data/expected/basic/handwriting-cff-colr-1.svg create mode 100644 test/vector/data/expected/basic/handwriting-glyf-colr-1.svg create mode 100644 test/vector/data/expected/basic/handwriting-sbix.svg diff --git a/test/vector/data/expected/basic/handwriting-cff-colr-1.svg b/test/vector/data/expected/basic/handwriting-cff-colr-1.svg new file mode 100644 index 000000000..b2210f447 --- /dev/null +++ b/test/vector/data/expected/basic/handwriting-cff-colr-1.svg @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/vector/data/expected/basic/handwriting-glyf-colr-1.svg b/test/vector/data/expected/basic/handwriting-glyf-colr-1.svg new file mode 100644 index 000000000..490d431eb --- /dev/null +++ b/test/vector/data/expected/basic/handwriting-glyf-colr-1.svg @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/vector/data/expected/basic/handwriting-sbix.svg b/test/vector/data/expected/basic/handwriting-sbix.svg new file mode 100644 index 000000000..67de99add --- /dev/null +++ b/test/vector/data/expected/basic/handwriting-sbix.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/test/vector/data/tests/basic.tests b/test/vector/data/tests/basic.tests index 42712bf00..2bfadd233 100644 --- a/test/vector/data/tests/basic.tests +++ b/test/vector/data/tests/basic.tests @@ -17,3 +17,7 @@ ../../../fuzzing/fonts/noto_handwriting-untouchedsvgz.ttf;;U+270D;../expected/basic/handwriting-svg.svg ../../../fuzzing/fonts/noto_handwriting-picosvg.ttf;;U+270D;../expected/basic/handwriting-picosvg.svg ../../../fuzzing/fonts/noto_handwriting-picosvgz.ttf;;U+270D;../expected/basic/handwriting-picosvg.svg +../../../fuzzing/fonts/noto_handwriting-sbix.ttf;;U+270D;../expected/basic/handwriting-sbix.svg +../../../fuzzing/fonts/noto_handwriting-glyf_colr_1.ttf;;U+270D;../expected/basic/handwriting-glyf-colr-1.svg +../../../fuzzing/fonts/noto_handwriting-cff_colr_1.otf;;U+270D;../expected/basic/handwriting-cff-colr-1.svg +../../../fuzzing/fonts/noto_handwriting-cff2_colr_1.otf;;U+270D;../expected/basic/handwriting-cff-colr-1.svg