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

How can I keep font family when export image or pdf file? #415

Open
milhlhat opened this issue Jun 21, 2024 · 1 comment
Open

How can I keep font family when export image or pdf file? #415

milhlhat opened this issue Jun 21, 2024 · 1 comment

Comments

@milhlhat
Copy link

Here is my component in browser:
image

And image I exported:
organization_chart (1)

Thankyou so much.

@bumbeishvili
Copy link
Owner

As I remember you have to embed the font as part of the SVG as base64

Something like this.

You have access to defs element inside svg if you want to add your own custom content
image

chart.defs(`
  // embed your font as base64 here
`)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants