Skip to content

Newlines don't work with Canvas rendering #1213

Description

@nightblade9

Just want to point out that the code below works if your component has DOM, but not Canvas (and obviously not WebGL, which doesn't seem to support text yet):

Crafty.e("Text").text("hi\nthere")

Renders in Canvas as hi there and in DOM as:

hi
there

Tested with v0.9.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions