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

how to get the length for font after draw #78

Open
fr4nkhe opened this issue Jul 13, 2020 · 1 comment
Open

how to get the length for font after draw #78

fr4nkhe opened this issue Jul 13, 2020 · 1 comment

Comments

@fr4nkhe
Copy link

fr4nkhe commented Jul 13, 2020

I want the font draw in the image horizontal center, but I don't know what method can get the length for font.

@syrm
Copy link

syrm commented Dec 29, 2020

drawer.MeasureString(text) ? (drawer is *font.Drawer)

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