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

Add getTextWidth etc. to docs #3300

Closed
imjosh opened this issue Oct 19, 2021 · 3 comments
Closed

Add getTextWidth etc. to docs #3300

imjosh opened this issue Oct 19, 2021 · 3 comments

Comments

@imjosh
Copy link

imjosh commented Oct 19, 2021

Many useful methods, and in many cases necessary ones, are not included in the docs.

@Uzlopak
Copy link
Collaborator

Uzlopak commented Oct 19, 2021

isnt getTextWidth an internal method?

@imjosh
Copy link
Author

imjosh commented Oct 19, 2021

Yes, I figured that out that now. Should getTextDimensions be used instead of getTextWidth? It's in the cell module but it seems like it should just be part of the main library. Also the documentation for it is incomplete. I'm just trying to center some text and all the solutions online say to use getTextWidth or they provide some partial, homebrew implementation of it with some of the features of getTextDimensions.

@HackbrettXXX
Copy link
Collaborator

Yes, getTextDimensions is the one you should use. And yes, the documentation is bad at many places. We are happy about every pull request that improves it.

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