Skip to content

Reset PathEffect for GetTextPaint to prevent unnecessary text shaping - #2171

Open
erikvdv1 wants to merge 1 commit into
oxyplot:developfrom
erikvdv1:develop
Open

erikvdv1 wants to merge 1 commit into
oxyplot:developfrom
erikvdv1:develop

Conversation

@erikvdv1

@erikvdv1 erikvdv1 commented Sep 16, 2026 •

Copy link
Copy Markdown

Fixes unnecessary text shaping when exporting plot to SVG using OxyPlot.SkiaSharp.SvgExporter. When drawing the legend below, the PathEffect leaks through the second/third/fourth DrawText call, because it is used when drawing the legend symbol. This causes Skia to render the text as SVG <path> element instead of SVG <text> element. This results in slightly different rendering (semi bold) and the shaped text cannot be selected by the user.

image

Checklist

  • I have included examples or tests
  • I have updated the change log
  • I am listed in the CONTRIBUTORS file
  • I have cleaned up the commit history (use rebase and squash)

Changes proposed in this pull request:

  • Reset PathEffect for GetTextPaint to prevent unnecessary text shaping

@oxyplot/admins

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant