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

Calculate the text height and width #5

Open
mba858 opened this issue Sep 1, 2015 · 3 comments
Open

Calculate the text height and width #5

mba858 opened this issue Sep 1, 2015 · 3 comments

Comments

@mba858
Copy link

mba858 commented Sep 1, 2015

Hi, first really big applause for this amazing work. Actually I need to ask, can we calculate the height and width for given text before drawing?
Mean suppose we got dynamic text, can we get the width and height relative to text?

@zgldh
Copy link

zgldh commented Sep 10, 2015

@mba858 Try imageftbbox

@unlocomqx
Copy link

unlocomqx commented Jan 1, 2017

A more precise lib to measure text size/position
https://github.com/unlocomqx/text-measure

@stil
Copy link
Owner

stil commented Sep 22, 2017

Related #36

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

No branches or pull requests

4 participants