text-to-svg icon indicating copy to clipboard operation
text-to-svg copied to clipboard

Most fonts are getting cut-off even when using anchor option

Open jkhaui opened this issue 5 years ago • 1 comments

Hi,

Thanks for the great library. I am using text-to-svg in conjunction with ~50 handwritten fonts and I notice the majority of them are prematurely trimmed on the x-axis (i.e. the first and last characters are cut in half).

A hacky workaround I'm using is to append 2 empty spaces to the start and 2 empty spaces to the end of the text before converting. It works, but obviously a proper solution would be something like the ability to add padding to the canvas drawing before conversion

jkhaui avatar Feb 10 '20 02:02 jkhaui