Skip to content

Add support for DrawText maxSize parameter to all platforms #1559

@Jonarw

Description

@Jonarw

As became apparent in #1558, not all IRenderContext implementations support the maxSize parameter of DrawText(...).

I think we could address this by:

  • Remove the maxSize parameter from IRenderContext.DrawText()
  • Add a RenderingExtensions.DrawText() extension method with the maxSize parameter
  • Implement this functionality using a combination of text measurement and regular clipping

That way I think it should be possible to get this to work on all platforms that natively support clipping.

I might have a look at this later.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions