drawio icon indicating copy to clipboard operation
drawio copied to clipboard

Setting to always embed fonts when saving to svg, (*.drawio.svg)

Open mawid6 opened this issue 3 years ago • 6 comments

  • [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.

Is your feature request related to a problem? Please describe. I like to save and work with diagrams in png or svg format with the diagram embedded, e g foobar.drawio.svg. When using open fonts like Fira Sans, Roboto, etc, the fonts are not embedded in the created svg. Contrast with svg export which has the option to embed fonts (implemented "in" #1702).

Describe the solution you'd like Ability to set that fonts are always embedded when saving to svg format. A flag/checkbox, in the save dialogue, that perhaps persists with the diagram to make it flexible... Could be an application setting also, but that would be less flexible.

Describe alternatives you've considered Workaround right now is to stop using custom/ open fonts (when using svg embedded files as storage) or not use svg, but go for .drawio.png files instead.

Additional context Also related: #404 (which in turn is maybe actually a dupe of #1702).

mawid6 avatar Jun 16 '22 09:06 mawid6

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

stale[bot] avatar Mar 25 '23 15:03 stale[bot]

Hi! It seems to me this is potentially an easy fix: This is already works for export to svg.

If you do export to svg, the fonts are embedded.

Why not reuse that code / functionality in the save as svg? Just a note that this could be an easy fix.

This is a showstopper for using anything but helvetica and times new roman, etc.

-> ...when saving embedded, i e as .drawio.svg.

So drawio svg:s in any git repo will not display correctly if they use any but the most common cross platform fonts.

mawid6 avatar Mar 28 '23 12:03 mawid6

Please check 24.0.6 to see if that completes this issue.

davidjgraph avatar Mar 13 '24 21:03 davidjgraph