multiple ID3DXFonts?

Started by
3 comments, last by andyb716 19 years, 6 months ago
Hi, I want to make a couple fonts for my game, but when I try to DrawText with more than one it gives me a memory not referenced error.
Advertisement
Hrm. That works for me. Or rather, I've called D3DXCreateFont twice [two different sizes for the same font] and they both render properly.

I use D3DXCreateFontIndirect, and for the D3DXCreateFont what is the HFONT for the second param I cant find it on msdn.
It shouldn't matter whether you use D3DXCreateFontIndirect or D3DXCreateFont.

The MSDN search leaves a lot to be desired. Try searching for CreateFont, it's a GDI call.
Stay Casual,KenDrunken Hyena
I got it to work, now I can use as many fonts as I want. I don't what I was doing or what I did to make it work, and that sucks cause I dont want to do the same thing in the future. thanks for your guys help.

This topic is closed to new replies.

Advertisement