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);
}