I do not know if anyone can use this, I use it for creating my fonts for tool tips and things of that nature to match the screen res I am using...for TRUE TYPE FONTS

Code:
vFont[6] = {8,12, 16, 24, 32, 48, 72}; //Size of the Fonts I want to use for each res I have in the game

//This is is Main
//video_settings[0] is just the variable I have holding my res variable.

strToolFont create_font("Airal",vFont[video_settings[0]], "b");
fnt_tool = font_create(strToolFont);

//////////////////////////////
// FUNCTION create_font(STRING* strFont, var sizeFont, STRING* strFormat)
// strFont - Name of the Font
// sizeFont = fontSize;
// strFormat = Bold Itallics 
//////////////////////////////
function create_font(STRING* strFont, var sizeFont, STRING* strFormat)
{
   STRING* tempstr = "#255";
   STRING* tempsize = "#2";
   
   str_clip(tempstr,255);
   str_clip(tempsize, 2);
   
   str_cpy(tempstr,strFont);
   
   str_for_num(tempsize, sizeFont);
   str_cat(tempstr,tempsize);
   
   str_cat(tempstr,strFormat);	
}


What it basically does is get the setting variable (I use the Widescreen Code posted here by mpdeveloper_B posted in the user contr.. and the panel refresh code by eleroux for scaling my panels to set up my panels...and then to get the correct font size of the truetype font i use the above code, which I wrote)

This way I create the font I will need when the engine runs based on the users settings...

If it confuses anyone Ill try to explain it better, as this is my first code I have posted...


John C Leutz II