diff --git a/tests/fonts/Inter-Regular.ttf b/tests/fonts/Inter-Regular.ttf new file mode 100644 index 0000000..04be4d0 Binary files /dev/null and b/tests/fonts/Inter-Regular.ttf differ diff --git a/tests/fonts/diffs/cff.png b/tests/fonts/diffs/cff.png new file mode 100644 index 0000000..9b820ce Binary files /dev/null and b/tests/fonts/diffs/cff.png differ diff --git a/tests/fonts/masters/cff.png b/tests/fonts/masters/cff.png new file mode 100644 index 0000000..58e2935 Binary files /dev/null and b/tests/fonts/masters/cff.png differ diff --git a/tests/fonts/rendered/cff.png b/tests/fonts/rendered/cff.png new file mode 100644 index 0000000..364c36b Binary files /dev/null and b/tests/fonts/rendered/cff.png differ diff --git a/tests/test_fonts.nim b/tests/test_fonts.nim index 91548e4..46b54cf 100644 --- a/tests/test_fonts.nim +++ b/tests/test_fonts.nim @@ -994,3 +994,12 @@ block: block: var typeface = readTypeface("tests/fonts/Roboto-Regular_1.ttf") doAssert typeface.getKerningAdjustment('T'.Rune, 'e'.Rune) == -99.0 + +block: + var font = readFont("tests/fonts/Inter-Regular.ttf") + font.size = 26 + let image = newImage(800, 100) + image.fill(rgba(255, 255, 255, 255)) + image.fillText(font, "Grumpy wizards make toxic brew for the evil Queen and Jack.") + + doDiff(image, "cff")