-
Notifications
You must be signed in to change notification settings - Fork 2k
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 to Use Standard Fonts #101
Comments
Standard fonts aren't embedded by default, if you need them, you should add them manually as described here: #33 |
Already did that. Works fine. But fonts have a huge size :( It's sad that we can't access user's standard fonts. |
AFAIK the underlying pdfkit library does not provide this, I wish it could be done easily ;) |
I'm marking it as a feature request and will think about it |
Any news about it? |
Now, there is no problem to implement this, but I do not know whether it will have any benefits. |
|
How to use standard fonts?
Found them in source code
PDFFont.prototype._standardFonts = ["Courier", "Courier-Bold", "Courier-Oblique", "Courier-BoldOblique", "Helvetica", "Helvetica-Bold", "Helvetica-Oblique", "Helvetica-BoldOblique", "Times-Roman", "Times-Bold", "Times-Italic", "Times-BoldItalic", "Symbol", "ZapfDingbats"];
I have tried to use that font names instead of font file names in VFS. But i got a exception: Uncaught TypeError: Cannot read property 'widthOfString' of null
The text was updated successfully, but these errors were encountered: