Center string with spaces #3001
Unanswered
rradomir
asked this question in
Q&A - General
Replies: 2 comments
-
Post an example that demonstrates the problem. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I guess my question is why do you think it should automatically trim the string for you? How does it know you really want that string trimmed? I'd say trim starting or trailing spaces yourself if that's what you really want to do. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I want to use drawString with char * table. It's only 4 elements long. Sometimes all 4 digits are used, sometimes only 2 with spaces at end. Still, setTextDatum(TC_DATUM); and drawString will center all string with spaces, not only 2 digits. How to properly do it?
Beta Was this translation helpful? Give feedback.
All reactions