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

fonts in server-side #916

Closed
yal100394 opened this issue Mar 22, 2017 · 1 comment
Closed

fonts in server-side #916

yal100394 opened this issue Mar 22, 2017 · 1 comment

Comments

@yal100394
Copy link

Can I use a url from a cdn to as path for the font? I am doing the pdf generation on server-side and I don't want to add a directory in server specifically for the fonts.

@liborm85
Copy link
Collaborator

liborm85 commented Mar 26, 2017

By cdn is available default Roboto font on client-side. Example URL: https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.27/vfs_fonts.js

On server-side you can use real font file.

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