This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const purpose = "Purpose: obfuscate ttf file (convert to Microsoft's ODTTF format)" | |
const usage = "Usage: node obfuscate-ttf-to-odttf.js <guid-font-file.ttf> [<output-file.odttf>]" | |
const obfuscatedStartOffset = 0 | |
const obfuscatedEndOffset = 32 | |
const guidSize = 32 | |
const fs = require('fs') | |
const path = require('path') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Required modules. | |
var cradle = require('cradle'); | |
var util = require('util'); | |
var http = require('http'); | |
// Config. | |
var config = require('./config'); | |
// Create a new HTTP server to accept Postmark POSTs. | |
http.createServer(function(req, res) { |