sb / smallbasic-editor

Home to the Small Basic editor (beta)
https://smallbasic-publicwebsite-code.azurewebsites.net/
MIT License
101 stars 34 forks source link

DrawText ignores leading space #154

Open nonkit opened 4 years ago

nonkit commented 4 years ago

GraphicsWindow.DrawText ignores leading space. Following code should be aligned right.

GraphicsWindow.FontName = "Courier New"
x = 56
For n = 1 To 10
    If n < 10 Then
        n = Text.Append(" ", n)
    EndIf
    GraphicsWindow.DrawText(x, y, n)
    y = y + 24
EndFor