https://github.com/mozilla/pdf.js/issues/6397#issuecomment-164954332 Would have been a lot easier to find had there been an assertion checking that string16 didn't go out of bounds of the 16bit number.

const angle = Math.floor(properties.italicAngle * 2 ** 16);
  return (
    "\x00\x03\x00\x00" + 
    string32(angle) + 
    "\x00\x00" + 
    "\x00\x00" + 
    string32(properties.fixedPitch) + 
    "\x00\x00\x00\x00" + 
    "\x00\x00\x00\x00" + 
    "\x00\x00\x00\x00" + 
    "\x00\x00\x00\x00"
  ); 
}
function createPostscriptName(name) {
  
  return name.replace(/[^\x21-\x7E]|[[\](){}<>/%]/g, "").slice(0, 63);
}
function createNameTable(name, proto) {
  if (!proto) {