Merge pull request #288 from treeform/Supercalifragilisticexpialidocious

Add long words test.
This commit is contained in:
treeform 2021-09-12 13:28:54 -07:00 committed by GitHub
commit 8b906edd07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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