[JAVA] bold text incorrectly positioned when saving vsdx as SVG

With Diagram 20.4 Java, saving a VSDX as an SVG that contains text runs containing normal and bold text can lead to some of the text overlapping.

In the attached test case, you’ll see the following artifacts that are not present when saving from Visio:

  • In boxes 3, 7 and 17, the bold text has no space between it and the following normal text
  • In boxes 8, 19 and 20, the bold and normal text overlap

Part of the difference between aspose is that you’ll generate separate <text> elements for each of the text styles within a run while Visio will make a single <text> element containing styled <tspan> elements. The Visio method would seem to be more robust as it won’t need to re-calculate the text position for items within a run, rather just relies on the viewer’s text handling to do positioning. Using styling also results in a potentially smaller SVG as you don’t have to repeat the font attributes on the text elements - just use a class to apply them.

bad-bold-spacing.zip (128.9 KB)

Regards
Vittal

@vittala

We have logged an issue as DIAGRAMJAVA-50692 in our issue tracking system. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as DIAGRAMJAVA-50692) have been fixed in Aspose.Diagram for Java 20.5.