Skip to content

Regression with advanced text renderer and line height. #487

@itsjamie

Description

@itsjamie

The original PR #378 added better support for text rendering of multi-line text and respecting the canvas size when calling Canvas2D.drawText to not cause a breaking change for everyone, the PR was focused on the advanced text renderer and was opt-in behavior. As part of that when the line height was larger than the font the size of the canvas that the text was positioned in was sized by the line height.

This commit removed that behavior 4f0b248.

Now, the canvas size of the text is larger than it should be. See PR #378 for the original screenshots showing the screenshots demonstrating the canvas sizing.

Code from PR would render as such:
image

After upgrading same code now renders same result as:
image

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