Add long words test.

This commit is contained in:
treeform 2021-09-12 13:24:22 -07:00
parent a5cd9cd35e
commit f419fdb4d9
4 changed files with 14 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

View file

@ -185,6 +185,20 @@ block:
doDiff(image, "basic8")
block:
var font = readFont("tests/fonts/Roboto-Regular_1.ttf")
font.size = 24
let image = newImage(200, 100)
image.fill(rgba(255, 255, 255, 255))
image.fillText(
font,
"Long words: Supercalifragilisticexpialidocious\nAntidisestablishmentarianism",
bounds = vec2(100, 100)
)
doDiff(image, "basic8b")
block:
var font = readFont("tests/fonts/Roboto-Regular_1.ttf")
font.size = 24