maui icon indicating copy to clipboard operation
maui copied to clipboard

.Net MAUI conversion of SVG text into PNG is incorrect.

Open vr4guid opened this issue 2 years ago • 0 comments

Description

When an SVG graphic contains more complicated text elements the conversion into an PNG is not correct. The following is an example of and SVG element that .Net MAUI renders into a PNG file incorrectly...

HelloWorldThis is Not CorrectLine 1 - No SpacesLine 2 - Spaces

Steps to Reproduce

  1. Create a new .Net MAUI Android project using the standard "Hello World" template.
  2. Create a new SVG graphic that contains a complex text - for example a single text element with multiple colors.
  3. Include the SVG in the project as appropriate.
  4. Compile and execute the application.
  5. Note that the results are incorrect.

Sample project referenced in public repo.

Link to public reproduction project repository

https://github.com/vr4guid/MauiDefect-SVG-1

Version with bug

6.0.486 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 12.0, Android 13.0

Did you find any workaround?

At present the only known workaround is to create PNG graphics outside of the .Net MAUI toolchain - which is counter to a core objective of .Net MAUI.

Relevant log output

No response

vr4guid avatar Nov 12 '22 03:11 vr4guid