graphicore / specimenTools

Apache License 2.0
29 stars 5 forks source link

Added possibility to overwrite font names as per #23 #24

Closed kontur closed 7 years ago

kontur commented 7 years ago

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.

graphicore commented 7 years ago

Thanks! more comments in #23