Skip to main content
gamedev.net
🔒 Locked

D3DXCreateFont()

Started by shaquill 1 reply 800+ views
Original Post
shaquill
shaquill
Hi, Some computer have problem with D3DXCreateFont(). What I don't know is why it's not always happen. The font is "arial". I guess that computer doesn't find font's path maybe..^^;; Can somebody tell me?
Hellow everyone
Muhammad Haggag
Muhammad Haggag
We can't tell you without any clues. Post the code. Check the function return value and log it on failure. Make use of DXGetErrorString9 and DXGetErrorDescription9.

shaquill
shaquill
Sorry... My code is like below.
Most of computer have no problem in this line.
Only few computer return Fail.

if( FAILED( hr = D3DXCreateFont( lpD3DDev,
15,
0,
FW_SEMIBOLD,
0,
FALSE,
DEFAULT_CHARSET,
OUT_DEFAULT_PRECIS,
DEFAULT_QUALITY,
DEFAULT_PITCH | FF_DONTCARE,
TEXT("Arial"),
&m_pFont ) ) )
Hellow everyone

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.