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

have renderstring! return text bound box? #9

Open
bjarthur opened this issue May 1, 2017 · 2 comments
Open

have renderstring! return text bound box? #9

bjarthur opened this issue May 1, 2017 · 2 comments

Comments

@bjarthur
Copy link
Member

bjarthur commented May 1, 2017

currently renderstring! returns the img that is input. more useful i think would be to return the bounding box of the rendered text. if that makes sense, i could create a PR. let me know.

@SimonDanisch
Copy link
Member

@davibarreira
Copy link

Does this work on strings? I was able to get the proper size for chars, but for strings it does not work:

    img, extent = FreeTypeAbstraction.renderface(face,"test",100)
    hb = FreeTypeAbstraction.inkboundingbox(extent)

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

3 participants