drawio icon indicating copy to clipboard operation
drawio copied to clipboard

SVG Export: Text is cropped at text field borders

Open BOW-el opened this issue 1 year ago • 1 comments

Preflight Checklist

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

If you are technical, you should reporting bugs along the lines of https://marker.io/blog/how-to-write-bug-report. If you are not technical, we will make allowances, please try to make an effort to understand the process.

Describe the bug First, Many thanks for this great and helpful project!

Upon Exporting a graph via sgv, text is cropped at text field borders. This behavior differs from jpg export

To Reproduce Steps to reproduce the behavior:

  1. Open new graph
  2. Insert text field and enter text that exceeds the field borders
  3. Export as png/jpg
  4. Export as svg

Expected behavior WISIWYG, text should be displayed as in the interface. Possibly the text field could be extended in the export?

Screenshots Interface Screenshot: grafik Rendered output from jpg export (desired state): grafik Rendered output from svg export (undesired) grafik

draw.io version (In the Help->About menu of the draw.io editor):

draw.io version 24.1.0

Desktop (please complete the following information):

  • OS: [e.g. iOS]: Windows 11

Additional context Add any other context about the problem here.

BOW-el avatar Apr 04 '24 13:04 BOW-el

Text Output is rendered correctly by Edge for instance actually, but not by Inkscape (where I took the screenshot above from). Might therefore actually be an issue with the rendering software. Artificially increasing the text field size might still help.

BOW-el avatar Apr 04 '24 13:04 BOW-el

I'm using the version 24.4.8 on Windows and I have the textbox not showing completely in Inkscape nor in LaTeX using svg package. In the web browser it is rendered corrected.

From drawio: image

Openning in Inkscape I have: image

lpdx avatar Jun 06 '24 23:06 lpdx

Did you export the SVG? What were the export settings?

alderg avatar Jun 07 '24 04:06 alderg