Closed vinaydotblog closed 5 years ago
Hi, this library tries to reproduce the text as its author wanted it.
To render text differently, I suggest that you write your own version of glyphsToPath (it is just 25 lines long). The X coordinate is adjusted at lines 376 and 377. You can delete these lines, or add your own X increment.
Just for the reference of future visitors, commenting following line in glyphsToPath
utility function, disables the kerning of the generated svg path text. 👏
// if (i < gls.length - 1) x += Typr.U.getPairAdjustment(font, gid, gid2);
I have noticed that fonts converted using
glyphsToPath
utility have 'kerning' applied to those by default. I tried tinkering with following piece of code ingetPairAdjustment
utility. But it produces the same result. Can you please suggest some way to remove kerning of fonts.