commit
c81c336f55
|
@ -272,6 +272,7 @@ proc typeset*(
|
||||||
result.selectionRects[i].xy = vec2(at.x, at.y)
|
result.selectionRects[i].xy = vec2(at.x, at.y)
|
||||||
at.x += advance(font, result.runes, i)
|
at.x += advance(font, result.runes, i)
|
||||||
dec lineStart
|
dec lineStart
|
||||||
|
prevCanWrap = 0
|
||||||
|
|
||||||
result.lines[^1][1] = lineStart - 1
|
result.lines[^1][1] = lineStart - 1
|
||||||
result.lines.add((lineStart, 0))
|
result.lines.add((lineStart, 0))
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 6.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 7.2 KiB |
|
@ -194,7 +194,7 @@ block:
|
||||||
image.fillText(
|
image.fillText(
|
||||||
font,
|
font,
|
||||||
"Long words: Supercalifragilisticexpialidocious\nAntidisestablishmentarianism",
|
"Long words: Supercalifragilisticexpialidocious\nAntidisestablishmentarianism",
|
||||||
bounds = vec2(100, 100)
|
bounds = vec2(100, 0)
|
||||||
)
|
)
|
||||||
|
|
||||||
doDiff(image, "basic8b")
|
doDiff(image, "basic8b")
|
||||||
|
|
Loading…
Reference in a new issue