Merge font files using gulp.js
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

I need two existing vfs_fonts.js files merged together with the roboto-bold.ttf file into a single vfs_fonts.js file, as per the example here:

https://github.com/bpampuch/pdfmake/issues/673

The purpose is so that I can use multiple fonts in a single vfs_fonts.js file for PDFMake

The Roboto-Bold font can be found here:

https://www.fontsquirrel.com/fonts/roboto

And then two existing vfs_fonts.js can be found here:

http://42.meup.org/RtjArm5Y.zip

awarded to tannhauser

Crowdsource coding tasks.

1 Solution

Winning solution

I've uploaded result on rghost:
result

Hey, thanks a lot! I removed one of the files, can you please merge this file: http://42.meup.org/u4Nxb2gH.zip and this file roboto-bold: https://www.fontsquirrel.com/fonts/roboto
user856 1 month ago
Here it is file. I saw no difference between it and previous file however. What file did you delete?
tannhauser 1 month ago
In my zip file link, I think there are two files right, vfs_fonts.js and vfs_fonts_roboto.js. I had a look afterwards at vfs_fonts_roboto.js and I only see the Roboto-Italic font in that file, if that's the case then I don't need the file with only Roboto-Italic. Is this also what you see?
user856 1 month ago
No, there are 5 items in vfs_fonts_roboto.js :roboto-italic, roboto-mediumitalic, roboto regular, roboto medium and sampleimage.jpg.
tannhauser 1 month ago
Okay so I included your modified vfs_fonts.js file but I got this error when running it Error: No unicode cmap for font
user856 1 month ago
For which one?
tannhauser 1 month ago
The last file had the error
user856 1 month ago
For which font?
tannhauser 1 month ago
I'm not sure, it doesn't tell me for which font. But I think it should work if you just combine the vfs_fonts.js and vfs_fonts_roboto.js from this link here: http://42.meup.org/RtjArm5Y.zip Without combining the font here: https://www.fontsquirrel.com/fonts/roboto
user856 1 month ago
File
tannhauser 1 month ago