We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

[Java] Text underlining in SVG output

When text is underlined in Visio and output as SVG, rather than the text being underlined using CSS, Aspose Diagram uses a path to create the underline while Visio will create the underline using CSS.

Attached is a zip containing:

  • text-with-underline.vsdx - source Visio
  • text-with-underline.svg - SVG saved from Visio
  • text-with-underline-from-aspose.svg - SVG created with Aspose Diagram

text-with-underline.zip (12.6 KB)


Another problem shown in the example is the text font changes from Calibri Light to Times New Roman at the point the underlined text starts. The text should remain in Calibri as there’s nothing in the vsdx to change the font to Times.


We managed to replicate the said issues in our environment. These issues have been logged under the ticket ID DIAGRAMJAVA-50599 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates.

Thanks @imran.rafique

In general, it would be better if text styling could be done using CSS classes (like Visio does) as it makes it easier for people to correct the SVG through additional CSS selectors if needed.



Sure, an investigation has been logged (DIAGRAMJAVA-50599) to address this issue. We will let you know once a significant progress has been made in this regard.

The issues you have found earlier (filed as DIAGRAMJAVA-50599) have been fixed in Aspose.Diagram for Java 18.4. This message was posted using BugNotificationTool from Downloads module by imran.rafique