Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Problem with GD...
  
User name:
Password:
Reply:
 

UserPost
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?
Acmlm's Board - I2 Archive - Programming - Problem with GD...


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.009 seconds.