[Release] Load font by BYTE
[php]//Globals
DWORD THEFONT
BYTE FONT[] = { /*BYTES HERE, USE A FILE TO BYTE ARRAY CONVERTER!*/ }
//----------------------------
void cMisc::LoadFont(DWORD &Temp, BYTE Name[], char FontName[])
{
Temp = NULL;
AddFontMemResourceEx((void*)Name,sizeof(Name),0,&T emp);
Hack->Misc->Fontname = FontName;
}[/php]
Temp: Convert ur DWORD to the Font(this address is the Font, this means, the Font wil be deleted when the game is closing, so its nice for public hacks.)
Name: The ByteArray of ur Font
FontName: Not the name of the data(.ttf or what ever u use file), this means the name like "Arial")
Example
[php]LoadFont(THEFONT,FONT,"Spiderman");
//i had no idea xD i never saw a default font with name spiderman, so i choosed this... and i look at the moment spiderman3 xD[/php]
The function clean ur RAM after the process is ended, and also the editor accept this font.
Enjoy or not
Screen

Creditz:
Gordon` (helped by search)
Kotentopf
DWORD THEFONT
BYTE FONT[] = { /*BYTES HERE, USE A FILE TO BYTE ARRAY CONVERTER!*/ }
//----------------------------
void cMisc::LoadFont(DWORD &Temp, BYTE Name[], char FontName[])
{
Temp = NULL;
AddFontMemResourceEx((void*)Name,sizeof(Name),0,&T emp);
Hack->Misc->Fontname = FontName;
}[/php]
Temp: Convert ur DWORD to the Font(this address is the Font, this means, the Font wil be deleted when the game is closing, so its nice for public hacks.)
Name: The ByteArray of ur Font
FontName: Not the name of the data(.ttf or what ever u use file), this means the name like "Arial")
Example
[php]LoadFont(THEFONT,FONT,"Spiderman");
//i had no idea xD i never saw a default font with name spiderman, so i choosed this... and i look at the moment spiderman3 xD[/php]
The function clean ur RAM after the process is ended, and also the editor accept this font.
Enjoy or not
Screen

Creditz:
Gordon` (helped by search)
Kotentopf







