-
Notifications
You must be signed in to change notification settings - Fork 940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve vertical text alignment of OxyPlot.SvgExporter #1531
Comments
It looks like the Skia svg exporter doesn't touch the An implementation of this 'just sort of guess where the baseline might be' approach is implemented in 6790236 and produces results like these when using ImageSharp for text measurement. That commit also does a few other things:
I'll wait until the nightmare inducing ImageSharp changes have been pulled/rejected/whatever before I add a PR for any of this, and will probably break it up into separate PRs (assuming the descent kludge is acceptable at least for the time being). While I'm typing, I noticed that the PortableDocumentFont stuff doesn't add gaps between lines (which explains some of the deficiencies in the SvgRenderContext I lazily didn't fix last time round). |
Could we improve this by overriding |
@Jonarw yeah, good idea. I keep thinking we'd have to modify |
See discussion in #1518.
Output of SkiaSharp SVG export could give some inspiration.
The text was updated successfully, but these errors were encountered: