-
Notifications
You must be signed in to change notification settings - Fork 264
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
wrong result from get_string_width #1009
Comments
Hi @matipos2 and welcome What you are observing is the impact of the cell margin setting ( You get get rid of this difference simply by setting We should probably better document this. |
Hi @Lucas-C thank you for quick response.
And additional note to the description of
If you accept, I may prepare a PR later on. |
Looks great ! I would suggest those slights rewordings, to keep those docstrings short:
What do you think? |
I like your version more. The PR is ready: #1012 |
I merged your PR, thank you for your contribution! Closing this now |
It seems that function
get_string_width()
gives wrong result. It's always 2 points less than I'd expect.Minimal code
Minimal Python code reproducing the issue (I couldn't find any information about that behavior in documentation):
Here is the result:
The text was updated successfully, but these errors were encountered: