HelpD3D Text have problems !!!

Posts 1–7 of 7 · Page 1 of 1
D3D Text have problems !!!
the text can't appear well , the shapes and others good , but the text is unknown signs , only s, 1, n appear !!!
and the screen have some changes in colours , but all hacks off !!!1
anyone can help !?!!!!!!!
whitout some pic's and code nobody can help you ....
Code:
void CreateFont(IDirect3DDevice9 *d3dDevice, std::string choiceFont){
        D3DXCreateFont( d3dDevice,
                        14,
                        0,
                        FW_BOLD,
                        1,
                        0,
                        DEFAULT_CHARSET,
                        OUT_DEFAULT_PRECIS,
                        ANTIALIASED_QUALITY,
                        DEFAULT_PITCH | FF_DONTCARE,
                        L"Arial",
                        &m_font );
}
that's the create font !!!!,i use d3dhook by Pingo !!!!
and some color has been changed
but idk why it has been like that !!!
SS of the Menu :
Quote Originally Posted by DarkPladin View Post
Code:
void CreateFont(IDirect3DDevice9 *d3dDevice, std::string choiceFont){
        D3DXCreateFont( d3dDevice,
                        14,
                        0,
                        FW_BOLD,
                        1,
                        0,
                        DEFAULT_CHARSET,
                        OUT_DEFAULT_PRECIS,
                        ANTIALIASED_QUALITY,
                        DEFAULT_PITCH | FF_DONTCARE,
                        L"Arial",
                        &m_font );
}
that's the create font !!!!,i use d3dhook by Pingo !!!!
and some color has been changed
but idk why it has been like that !!!
SS of the Menu :
ⓘ
You didn't release your font

ex the function i use
Code:
VOID CreateFont( LPDIRECT3DDEVICE9 p_Dev)
{
	if( pFont )
	{
		pFont->Release();
		pFont = 0;
	}
		if( !pFont )
		D3DXCreateFontA( p_Dev,14,0,FW_BOLD,1,0,DEFAULT_CHARSET,OUT_DEFAULT_PRECIS,ANTIALIASED_QUALITY,DEFAULT_PITCH | FF_DONTCARE,"Arial",&pFont );


}
Quote Originally Posted by Ayyash View Post
You didn't release your font

ex the function i use
Code:
VOID CreateFont( LPDIRECT3DDEVICE9 p_Dev)
{
	if( pFont )
	{
		pFont->Release();
		pFont = 0;
	}
		if( !pFont )
		D3DXCreateFontA( p_Dev,14,0,FW_BOLD,1,0,DEFAULT_CHARSET,OUT_DEFAULT_PRECIS,ANTIALIASED_QUALITY,DEFAULT_PITCH | FF_DONTCARE,"Arial",&pFont );


}
ew... gross... instead of using the built in font I suggest you write your own font that uses primitives and manages itself, much faster / efficient, etc.
Make sure you're using font->DrawTextA on your printText function, instead of font->DrawText.
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us