You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm an intern working for a company this summer, and we're trying to use pdfmake to generate a completion certificate on their Articulate Storyline 2 course. I am very new to coding, but I've managed to stumble through this far. I'm trying to use my own fonts and I was able to make a vfs_fonts.js, put the .ttf files into the fonts folder, and I used the following code to set the font in my javascript:
and I set the default style to 'textFont' before calling the generatePDF function
My certificate loads just fine, but the text is still Roboto. I have tried moving the pdfMake.fonts around, checked for syntax errors, peruised message boards, but haven't found a solution thus far. On #33 user @Chaitanya2207 seemed to be having a similar issue as me, but his question was never answered. Any help would be appreciated.
Thank you!
The text was updated successfully, but these errors were encountered:
Hey, I'm an intern working for a company this summer, and we're trying to use pdfmake to generate a completion certificate on their Articulate Storyline 2 course. I am very new to coding, but I've managed to stumble through this far. I'm trying to use my own fonts and I was able to make a vfs_fonts.js, put the .ttf files into the fonts folder, and I used the following code to set the font in my javascript:
and I set the default style to 'textFont' before calling the generatePDF function
My certificate loads just fine, but the text is still Roboto. I have tried moving the pdfMake.fonts around, checked for syntax errors, peruised message boards, but haven't found a solution thus far. On #33 user @Chaitanya2207 seemed to be having a similar issue as me, but his question was never answered. Any help would be appreciated.
Thank you!
The text was updated successfully, but these errors were encountered: