Quote:
|
Originally Posted by Tolnaftate2004
PHP Code:
font = "verdana";
style = "";
fontsize = $pref::graal::defaultfontsize/gettextheight(1,font,style);
tokens = wraptext2(40,fontsize," ",font @ "@" @ style @ "@" @ player.chat);
This will most accurately split at words and fit into your space. $pref::graal::defaultfontsize is a placeholder for the height in pixels of how tall you want the text to be. Change to your liking.
|
I actually have never used $pref vars untill now.. however, now it doesnt wrap the text at all.