Also updated opentype.js to a newer version which fixes a couple of inconvenient bugs.
This is pretty straight forward; FontsData can be passed a addition overwrites option which contains keys equalling a font's PS name, and the value is an overwrite for that name. I've not expanded this to overwriting anything else, like weights or widths, but the possibility to overwrite the name can come in handy in many ways. My use case is showing a type tester with several fonts (all of the same family), so I'd like to manually overwrite all names to be merely the style, not family name plus style. Furthermore, font names would look nicer with additional spaces etc, all of which can be tweaked with passing these in as options.
Also updated opentype.js to a newer version which fixes a couple of inconvenient bugs.
This is pretty straight forward; FontsData can be passed a addition overwrites option which contains keys equalling a font's PS name, and the value is an overwrite for that name. I've not expanded this to overwriting anything else, like weights or widths, but the possibility to overwrite the name can come in handy in many ways. My use case is showing a type tester with several fonts (all of the same family), so I'd like to manually overwrite all names to be merely the style, not family name plus style. Furthermore, font names would look nicer with additional spaces etc, all of which can be tweaked with passing these in as options.