waela Posted January 28, 2004 Posted January 28, 2004 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 Quote
waela Posted January 28, 2004 Author Posted January 28, 2004 hello, i found it Font myFont = new Font("Arial", 16); _surface.FontHandle = myFont.ToHfont(); sorry to distrub all Thanks Quote
slantz Posted February 8, 2004 Posted February 8, 2004 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.