This commit is contained in:
Ryan Oldenburg 2021-07-18 15:51:57 -05:00
parent dd9cd51310
commit f42d46be7a
4 changed files with 20 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View file

@ -970,3 +970,23 @@ block:
image.fillText(arrangement, vec2(20, 20))
doDiff(image, "spans6")
block:
var font = readFont("tests/fonts/Roboto-Regular_1.ttf")
font.size = 36
var paints: seq[Paint]
paints.add(rgba(0, 0, 255, 127))
paints.add(rgba(255, 0, 0, 127))
font.paints = paints
let image = newImage(200, 100)
image.fill(rgba(255, 255, 255, 255))
image.fillText(
font,
"Multiple fills",
bounds = vec2(200, 0)
)
doDiff(image, "paints1")