Closed joe223 closed 5 years ago
It will cause unexpected translate while using ascent:
https://github.com/purplebamboo/font-carrier/blob/06e0c197c676b1ba1d12e4bdf2eb0199dbdf6d8e/lib/class/glyph.js#L64
- path = svgpath(path).scale(1 / scale).translate(0, ascent).round(config.PATH_DECIMAL).toString() + path = svgpath(path).scale(1 / scale).translate(0, 0).round(config.PATH_DECIMAL).toString()
PR welcome!
@yisibl see you latter
Problem:
It will cause unexpected translate while using ascent:
https://github.com/purplebamboo/font-carrier/blob/06e0c197c676b1ba1d12e4bdf2eb0199dbdf6d8e/lib/class/glyph.js#L64
Resolve: