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

stroke of A in impact font extends too far #1878

Closed
johnstonmatt opened this issue Dec 4, 2014 · 6 comments
Closed

stroke of A in impact font extends too far #1878

johnstonmatt opened this issue Dec 4, 2014 · 6 comments

Comments

@johnstonmatt
Copy link

a

@asturur
Copy link
Member

asturur commented Dec 4, 2014

can we see code that generate this screenshot ans a normal rendering of this font?
thanks!

@johnstonmatt
Copy link
Author

i only know how i got the bug, i dont know how to get rid of it var options ={'originX':'center','originY':'center','fill':'#ffffff','stroke':'#000000','strokeWidth':3,'fontFamily':'Impact','fontSize':40,'top':500, 'left':400};
var text = "A A A"
var messedUp = new fabric.IText(text,options);
canvas.add(messedUp)

@johnstonmatt
Copy link
Author

maybe using height and width instead of fontSize makes it better

@asturur
Copy link
Member

asturur commented Dec 4, 2014

There is a known problem with custom fonts, boundingBox is not correct always.
But that capital A look strange anyway.

@johnstonmatt
Copy link
Author

Impact was a font that came with fabricjs, i think there is an error in the font itself but i dont know how it was implemented, vectors maybe? If there is an svg file for A maybe i could make a new one in illustrator

@asturur
Copy link
Member

asturur commented Dec 5, 2014

This is a general custom font issue.
I close it and report to the custom font issue.

@asturur asturur closed this as completed Dec 5, 2014
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