Unify multi-line text alignment on all the platforms · Issue #1554 · oxyplot/oxyplot · GitHub
Skip to content

Unify multi-line text alignment on all the platforms #1554

Open

Description

@Jonarw

Benchmark should be the 'Rendering Capabilities > Multi-line Alignment' and 'Rendering Capabilities > Multi-line Alignment/Rotation' examples.

  • WPF - fix horizontal alignment
    image

  • Windows Forms (and Core.Drawing) - fix horizontal alignment
    image

  • SkiaSharp
    image

  • ImageSharp - fixed in Improve ImageSharp.ImageRenderContext text alignment #1553
    image

  • SVG
    image

  • OxyPlot.PdfExporter - multiline text is not supported. Given we want to mark this as obsolete anyway, we don't have to worry about this too much I think
    image

  • OxyPlot.Pdf.PdfExporter - multiline text is not supported. Given we want to mark this as obsolete anyway, we don't have to worry about this too much I think
    image

Activity

  1. added this to the v3.0 milestone on May 10, 2020
  2. VisualMelon commented on May 10, 2020

    @VisualMelon
    Contributor

    If we reach a happy conclusion with #1551, then the code for performing this layout task could be provided by RenderContextBase. Adjustments will need to be made by the different platforms to account for the different rendering APIs (e.g. OxyPlot.Svg can only render relative to baseline), but this could reduce the individual complexity of each renderer, and generally make the code tidier.

    If I can sit down for more than a few minutes I'll try to put a version of this together for OxyPlot.Svg implementation, which really needs #1551 to make sense at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions