Skip to content

'\n' in DrawString doesn't work without TextLayoutOptions #12

@elemund

Description

@elemund

Description

If I DrawString without TextLayoutOptions it eats newlines.

Steps to Reproduce

string text = "Line One\nLine Two";
formeRenderer.DrawString( font, text, new Vector2( 100, 100 ), 20, Color.White );
formeRenderer.DrawString( font, text, new Vector2( 100, 150 ), 20, Color.White, new TextLayoutOptions() );
Image

Expected Behavior

There should be newlines in both.

Actual Behavior

Newline is missing.

Configuration

No response

Other Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions