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)