drawio icon indicating copy to clipboard operation
drawio copied to clipboard

Font Mismatch Inserting Diagram into Google Slides

Open Phrogz opened this issue 2 years ago • 7 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.

Describe the bug Inserting a diagram into Google Slides where the diagram uses a custom Google Font results in an image with an incorrect font displayed. If it matters, the Google Slides presentation is also using the same custom Google Font.

To Reproduce Steps to reproduce the behavior:

  1. Create a diagram with a shape with text inside.
  2. Set the font to "Bebas Neue Regular" (a Google font)
  3. Save the diagram to Google Drive
  4. Create a Google Slides deck, with the Diagrams.net add-on installed.
  5. Choose "Insert Diagram..." for the add-on, and insert your previously-saved diagram.

Expected behavior The image shown in the Google slide should match the font shown in diagrams.net
diagram as shown during editing

Actual behavior The image in Slides is using a different font. I'm unsure if this is a Theme font for the Slide, or a default font:
actual result

  • draw.io version v22.1.5

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome v119

I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:

  • no; need to be logged into Google

Phrogz avatar Dec 05 '23 17:12 Phrogz

Same problem. The font of the kanji in the generated diagram is a Chinese font instead of a Japanese font.

app.diagrams.net Screenshot 2024-01-12 at 10 37 05

diagrams for Docs Screenshot 2024-01-12 at 10 36 42

moscii avatar Jan 12 '24 01:01 moscii

Please attach the example diagram to test with.

davidjgraph avatar Mar 13 '24 21:03 davidjgraph

Hi David, I'll share a sample diagram to you. plantuml version drawio

The following code is embedded in the diagram.

@startuml
listfonts 新
@enduml

Thanks!

moscii avatar Mar 14 '24 05:03 moscii

This relates to PlantUML?

davidjgraph avatar Mar 14 '24 16:03 davidjgraph

I am embedding plantuml into a diagram on app.diagrams.net. Arrange > Insert > Advanced > PlantUML Screenshot 2024-03-15 at 2 25 59

moscii avatar Mar 14 '24 17:03 moscii

OK, that has nothing to do with the original posting. Please don't hijacking issues, create a new one.

davidjgraph avatar Mar 14 '24 17:03 davidjgraph

OK, I understand.

moscii avatar Mar 14 '24 17:03 moscii