-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Gulp not creating vfs_font.js file correctly #828
Comments
Can you provide download link to font? |
here is the link: I clicked on "Download zip" link |
I generated from TTF file this VFS file: vfs_fonts_times_new_roman.js.zip and all works correct. |
yeah I have followed up all the steps. Also I tried with yuor zip and getting the same error. So I am not sure exactly where the issue is coming. Below is the code snippet, its not even complicated yet :)
|
i tried to load fonts on page load but that too didn't worked. Could you also paste me the code which worked for you? Am I using the correct name for fonts as mentioned above? |
Your code does not work. I have long researched why... and the result is surprising... |
surprisingly the error went way and the font started to working fine. Additionally, I tried some other fonts and those are working like charm as well but in our application, we support some other languages like chinese, japanese and greek letters and I tried to use font Arial unicode for the same but seems that didn't resolve the issue and those characters with some special characters are still not comings fine. Do PDFMake supports Arial Unicode ? |
Have used http://ufonts.com/download/arial-unicode-ms/197925.html link to download arial unicode ttf file |
my bad, I resolved it but not without your help! ;) My html was coded in ANSI since I am using pspad editor on windows. As soon as I converted it in UTF-8, it resolved the issue and I am able to see lots of characters now. Only few are not visible which are special character that I will check. Thank you for great support through this!!! |
Hi,
I have included timesnewroman.tff file in examples/fonts and was able to run the command gulp buildFonts successfully but while using the updated font file in the code I am getting below error:
TypeError: this.name is undefined
And it is not taking the latest ttf name which I am seeing in the JS files.
Below is the code:
Please help me with the issue.
The text was updated successfully, but these errors were encountered: