Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jkhaui opened this issue Feb 10, 2020 · 1 comment
Open

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

jkhaui opened this issue Feb 10, 2020 · 1 comment

Comments

@jkhaui
Copy link

jkhaui commented Feb 10, 2020

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

@scottw-finao
Copy link

I had similar results when trying it. Is there a parameter to adjust the bounding box?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants