Add long words test.
This commit is contained in:
parent
a5cd9cd35e
commit
f419fdb4d9
4 changed files with 14 additions and 0 deletions
BIN
tests/fonts/diffs/basic8b.png
Normal file
BIN
tests/fonts/diffs/basic8b.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.5 KiB |
BIN
tests/fonts/masters/basic8b.png
Normal file
BIN
tests/fonts/masters/basic8b.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
BIN
tests/fonts/rendered/basic8b.png
Normal file
BIN
tests/fonts/rendered/basic8b.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.1 KiB |
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue