in reply to string alignment

Times Roman is a proportional font. Different letters are different widths. An "m" is about four times the width of an "i".

sprintf can align strings in terms of number of characters, but if your font's characters are all different widths, then sprintf won't help you. sprintf neither knows or cares what font you are using.