glyphhanger
glyphhanger copied to clipboard
Include Option for Filename Suffix
Currently all subsetted fonts will have a name like originalfilename-subset.woff
.
I would love to decide by my own if the -subset
suffix is needed and which string it should be.
It seem like it's hard wired at the moment, see https://github.com/filamentgroup/glyphhanger/blob/master/src/GlyphHangerSubset.js#L87 Sadly I'm not that experienced in node.js to provide an accurate pull request.
I worked around with this patch: https://github.com/filamentgroup/glyphhanger/compare/master...zk-phi:master
Note that suffix cannot start with -
, since it's treated as an commandline option.
I've just created a PR, but you may also use this patch https://github.com/zk-phi/zk-phi.github.io/commit/1f86c924a9ed6ecc12cccf810009f56570eec611 with patch-package
npm package until it's merged.