After coming across a post about securing the source code in a node-webkit desktop application on Stack Overflow, I began contemplating ways to safeguard my font files. Would using a snapshot approach, similar to the one mentioned in the post, be a viable option for this purpose?
Instead of utilizing the command:
nwsnapshot --extra-code application.js application.bin
I wondered if running:
nwsnapshot --extra-code font_file font_file.bin
and then including the following in package.json
would achieve the desired security:
snapshot: 'font_file.bin'
Alternatively, is there another method to reference the binary font file? Is it feasible to convert the CSS file that references the font into binary format? Moreover, can languages other than JavaScript be converted into binary as well?