User | Post |
windwaker
Posts: 1150/1797 |
So there's two things I can do.
1) find a fixed width font. 2) keep one fixed width of the image.
I think I'll do 2, as that was what I was planning to do the entire time...
I don't even know why I was trying to do this.
|
Vystrix Nexoth
Posts: 268/348 |
You are aware that Arial is not a fixed-width font, correct? Some letters will be wider than others. |
windwaker
Posts: 1149/1797 |
Whoa, whoa whoa. There's space between the text? XD That must be it.
I'll post a pic in a sec, Roger and Me is on. <3
Edit: http://img.photobucket.com/albums/v118/windwaker101/text.png
code for width:
$width = imagefontwidth('fonts/arial.ttf'); $width = $width * $len + $len - 1; |
Zem
Posts: 725/1107 |
Maybe the space between letters. Provide more detail. =( |
windwaker
Posts: 1148/1797 |
Well, I'm taking my font's pixel width and multiplying it by the length of the string I'm trying to display, but I get cut off words if I go too high, or too low. Is there something I should know about this? |