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... | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
windwaker

Ball and Chain Trooper
WHY ALL THE MAYONNAISE HATE
Level: 61

Posts: 1148/1797
EXP: 1860597
For next: 15999

Since: 03-15-04

Since last post: 4 days
Last activity: 6 days
Posted on 02-12-05 06:02 AM Link | Quote
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?
Zem
You can be civil without being flowery, dipshits.
Level: 49

Posts: 725/1107
EXP: 829398
For next: 54485

Since: 06-13-04

Since last post: 131 days
Last activity: 131 days
Posted on 02-12-05 06:10 AM Link | Quote
Maybe the space between letters. Provide more detail. =(
windwaker

Ball and Chain Trooper
WHY ALL THE MAYONNAISE HATE
Level: 61

Posts: 1149/1797
EXP: 1860597
For next: 15999

Since: 03-15-04

Since last post: 4 days
Last activity: 6 days
Posted on 02-12-05 06:44 AM Link | Quote
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;


(edited by windwaker on 02-12-05 02:55 AM)
Vystrix Nexoth

Level: 30

Posts: 268/348
EXP: 158678
For next: 7191

Since: 03-15-04
From: somewhere between anima and animus

Since last post: 3 days
Last activity: 2 days
Posted on 02-12-05 12:36 PM Link | Quote
You are aware that Arial is not a fixed-width font, correct? Some letters will be wider than others.
windwaker

Ball and Chain Trooper
WHY ALL THE MAYONNAISE HATE
Level: 61

Posts: 1150/1797
EXP: 1860597
For next: 15999

Since: 03-15-04

Since last post: 4 days
Last activity: 6 days
Posted on 02-12-05 10:22 PM Link | Quote
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.




(edited by windwaker on 02-12-05 09:44 PM)
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
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.008 seconds.