??? 03/03/05 10:17 Read: times |
#88956 - Proportional font? Responding to: ???'s previous message |
I said:
Surely all you need to do is to count the characters as you print them, and insert a newline every nth character?! This does assume that you're using a mono-spaced font; ie, all characters are the same width. If they're not, the principle remains the same, but you'll need a lookup table of character widths and you add up the width of each character as you print it, until you reach the maximum line width. |