Free Support Forum - aspose.com

Text bullet positions in VSDX -> SVG are incorrect [JAVA]

Hi

The attached test case shows how a VSDX -> SVG conversion using Diagram Java 20.2.1 gets bullet positions wrong.

Three issues exist compared to the SVG created by Visio:

  • The bullet points use wingdings rather than a unicode bullet character
  • The spacing between bullet and text is too wide
  • The bullets should start on a new line, but don’t for the central object

bad-bullet-position.zip (80.1 KB)

Regards
Vittal

@vittala

We have logged an issue as DIAGRAMJAVA-50686 in our issue tracking system for further investigation. We will surely inform you as soon as it is resolved. Please spare us some time.

We are sorry for the inconvenience.

@vittala

Please use Aspose.Diagram for Java 20.3.1 as a hotfix version and in case you still face any issue, please feel free to let us know.

Hi

Thanks for the update.
The hotfix seems to resolve the position issue, but the bullet characters themselves now appear to be wrong. Rather than using unicode U+2022 as the bullet, my test shows up a letter, rather than the unicode character. It looks like you’ve left it using wingdings characters and not switched to the unicode equivalents (l => U+25CF, u => U+25C6), though U+2022 might be better as a bullet.

What should be happening is the bullet font family should be set to a generic unicode font family and the appropriate unicode symbol used, rather than a wingdings symbol.

Incorrect:
<text xmlns=“http://www.w3.org/2000/svg” x=“37.707317” y="-3.5611625" font-family=“Arial Unicode MS” font-size=“4.8” fill="#3F3F3F" opacity=“1.0” transform=“matrix(1.0,0.0,0.0,-1.0,0.0,32.689137)”>l</text>

Correct:
<text xmlns=“http://www.w3.org/2000/svg” x=“37.707317” y="-3.5611625" font-family=“Arial Unicode MS” font-size=“4.8” fill="#3F3F3F" opacity=“1.0” transform=“matrix(1.0,0.0,0.0,-1.0,0.0,32.689137)”>&#x25CF;</text>

FYI - useful resource for mapping wingdings to unicode equivalents: http://www.alanwood.net/demos/wingdings.html

Regards
Vittal

@vittala

Thanks for sharing your feedback.

We have created a new ticket as DIAGRAMJAVA-50688 for the issue you mentioned. We will further investigate it and keep you posted with its resolution status. Please spare us some time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as DIAGRAMJAVA-50686,DIAGRAMJAVA-50688) have been fixed in Aspose.Diagram for Java 20.4.

Hi

Thanks for the update - 20.4 does appear to fix these issues.

Regards
Vittal

1 Like

@vittala

It is nice to hear that your issue has been logged. Please keep using our API and in case you need further assistance, please feel free to contact us.