Fix font embedding

Tonight I learned about what back references in regular expressions are and how to use them. So proud of myself. 
But those reg exp experts among the readers of this PR might still want to improve this part, at least I hope there is a way
```
if ((/[ \t\r\n]/).test(fontFamilyName)) {
    fontFamilyName = "'" + fontFamilyName.replace(/[ \t\r\n]+/g, " ") + "'";
}
```

Problem found the hard way, using a font-face name that was given as &apos;Funny name&apos;