purplebamboo / font-carrier

font-carrier是一个功能强大的字体操作库,使用它你可以随心所欲的操作字体。让你可以在svg的维度改造字体的展现形状。

Home Page:http://purplebamboo.github.io/font-carrier/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove ascent

joe223 opened this issue · comments

Problem:

It will cause unexpected translate while using ascent:

image

path = svgpath(path).scale(1 / scale).translate(0, ascent).round(config.PATH_DECIMAL).toString()

Resolve:

- 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()

image

PR welcome!

@yisibl see you latter