DX9 managed Font Hanlde (FontHandle)

waela

Newcomer
Joined
Jan 27, 2004
Messages
2
Hello,

i use DirectX managed code

//in c# code i do this
private Surface _surface = null;

//on new i crerate surface etc...
//create and initial surface code

// in blt method
//if i want set the font fore color i do this
_urface.ForeColor =Color.Black;

//but i can not find a way to set font face name how i do this????
//i found property named FontHandle
_surface.FontHandle = ?????? how do set font handle here please


thank you
wael
 
hello,
i found it

Font myFont = new Font("Arial", 16);
_surface.FontHandle = myFont.ToHfont();



sorry to distrub all
Thanks
 
thnx for posting this. The font stuff isn't as straightforward as I expected, and you saved me the time of having to look it up myself. =)

-Hiro_Antagonist
 
Back
Top