AddTextToPath() in combination with PathToBrush() affects the text output by TextOut(), but only the characters that have not yet been used. This looks like a bug to me.
Code: Select all
@DISPLAY {Width = 800, Height = 400, Layers = True}
SetFont(#SANS, 160, {Loader=inbuilt})
TextOut(50, 50, "AB")
Local pid1=StartPath(Nil)
MoveTo(pid1, 0, 0)
AddTextToPath(pid1, "x")
ClosePath(pid1)
PathToBrush(1, {{ID=pid1, X=0}})
FreePath(pid1)
FreeBrush(1)
TextOut(300, 50, "A")
TextOut(400, 50, "B")
TextOut(500, 50, "C")
TextOut(600, 50, "D")
TextOut(300, 200, "ABCD")
WaitLeftMouse