jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Other
40.9k stars 7.61k forks source link

Font Mismatch Inserting Diagram into Google Slides #4020

Open Phrogz opened 10 months ago

Phrogz commented 10 months ago

Preflight Checklist

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

Desktop (please complete the following information):

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

moscii commented 8 months ago

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
davidjgraph commented 6 months ago

Please attach the example diagram to test with.

moscii commented 6 months ago

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!

davidjgraph commented 6 months ago

This relates to PlantUML?

moscii commented 6 months ago

I am embedding plantuml into a diagram on app.diagrams.net. Arrange > Insert > Advanced > PlantUML

Screenshot 2024-03-15 at 2 25 59
davidjgraph commented 6 months ago

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

moscii commented 6 months ago

OK, I understand.