Skip to content

CR and LF are neglected in DrawText and DrawBoundText #146

Open
@nonkit

Description

@nonkit

CR and LF are neglected in GraphicsWindow.DrawText and DrawBoundText. Reproduction code is

CR = Text.GetCharacter(13)
LF = Text.GetCharacter(10)
GraphicsWindow.DrawText(10, 10, "Hello" + CR + LF + "World!")
GraphicsWindow.DrawText(110, 10, "Small" + CR + "Basic")
GraphicsWindow.DrawText(210, 10, "Enjoy" + LF + "Programming!")
GraphicsWindow.DrawBoundText(10, 110, 90, "Hello" + CR + LF + "World!")
GraphicsWindow.DrawBoundText(110, 110, 90, "Small" + CR + "Basic")
GraphicsWindow.DrawBoundText(210, 110, 90, "Enjoy" + LF + "Programming!")

Result in SBD (expected):
Issue 146 SBD

Result in SBO (issue):
Issue 146 SBO

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/runtimeIssues related to runtime engine

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions