Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect @font-face src in exported SVG file #100

Open
onlyice opened this issue Aug 24, 2023 · 3 comments
Open

Incorrect @font-face src in exported SVG file #100

onlyice opened this issue Aug 24, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@onlyice
Copy link

onlyice commented Aug 24, 2023

When I export the diagram as an SVG file, I noticed that the font is not displayed as expected. Upon opening the SVG file, the following content can be found:

<defs>
  <style class="style-fonts">
    @font-face {
      font-family: "Virgil";
      src: url("https://file%2B.vscode-resource.vscode-cdn.net/Users/kevin.lin/.vscode/extensions/pomdtr.excalidraw-editor-3.5.1/public//dist/excalidraw-assets/Virgil.woff2");
    }
    @font-face {
      font-family: "Cascadia";
      src: url("https://file%2B.vscode-resource.vscode-cdn.net/Users/kevin.lin/.vscode/extensions/pomdtr.excalidraw-editor-3.5.1/public//dist/excalidraw-assets/Cascadia.woff2");
    }
  </style>
</defs>

The URL is not accessible, which cause the unexpected font rendering. I believe it's caused by commit 1b149a4.

@pomdtr
Copy link
Collaborator

pomdtr commented Aug 24, 2023

You're suspicion is right. Fixing this requires some change on excalidraw side, I'll contact the excalidraw team

@pomdtr pomdtr added the bug Something isn't working label Sep 26, 2023
@HyunggyuJang
Copy link

Any update?

@mwopfner
Copy link

I think it is till an open issue in excalidraw: excalidraw/excalidraw#7543

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants