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

text space and strokeWidth problem #4208

Closed
domklement opened this issue Aug 16, 2017 · 1 comment
Closed

text space and strokeWidth problem #4208

domklement opened this issue Aug 16, 2017 · 1 comment

Comments

@domklement
Copy link

domklement commented Aug 16, 2017

Hi, I have 2 problems with Fabric.js iText.

I have a problem with text in Fabric.js. I want to use handwriting font "Alex Brush" in my app. The text is starting a bit out of box. At the end of the text is the same problem - text ends out of the box.
Second problem appears, if strokeWidth is too high, it becomes ugly, as you can see on picture (link below).

Thanks for any help or solution.

PS: Please, copy link and paste in new tab. Image is from outside, so after clicking, github will show an error.

https://i.stack.imgur.com/78V8M.png

@asturur
Copy link
Member

asturur commented Aug 16, 2017

For the stroke problem there are just 2 solutions

  1. use strokeLineCap: round for your objects
  2. contact font author and make him/her fix the spikes.

For the out of bounds solutions this issue is a duplicate of #1108

@asturur asturur closed this as completed Aug 16, 2017
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