This sample code can be used to determine text width in pixels at run time, in case you can't get a monospace font for character count based left padding.
This sample code can be used to determine text width in pixels at run time, in case you can't get a monospace font for character count based left padding.