:Gumps: function question

Archive of posts related to former distro versions. Be aware that posts here do not refer to the current distro and may not work.
Locked
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

:Gumps: function question

Post by MontuZ »

GFTextWidth(gump_text) - Currently only supports 1 font, I've tried to update for the new font the client uses in updated clients but failed repeatedly mainly due to the fact that I can't for the life of me figure out how this function works.

Any suggestions on how to get it to support the newer clients font?
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Re: :Gumps: function question

Post by Austin »

On the newer clients the fonts are a fixed width.
It should be as simple as Len(text)*width

I think width is between 5 and 10 pixels.
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Re: :Gumps: function question

Post by MontuZ »

That's one of the ways I managed to fail =)
Locked