>i want to do it in graphics
Yea, that tells me absolutely nothing about your needs. Be more specific, please.
>so for the alignment purpose i can't do it with a printf statement!
Assuming you're writing this to a label or text box (or pretty much any drawing mechanism), you would use sprintf to format the string first. I don't understand what you mean by "the alignment purpose", as the printf family is fully featured when it comes to alignment formatting.