foliojs / fontkit

An advanced font engine for Node and the browser
1.45k stars 213 forks source link

Added featureParams for friendly stylistic set names #251

Closed ollimeier closed 2 years ago

ollimeier commented 3 years ago

Added featureParams to get friendly stylistic set name via given nameID if given. For reference, see OT spec: https://docs.microsoft.com/en-us/typography/opentype/spec/features_pt#tag-ss01---ss20

ollimeier commented 3 years ago

@devongovett What do you think about this? It would help to get the name table ID of a stylistic set (if given).