I need something that can provide the information GetFontUnicodeRanges provides, but I can’t find anything similar. I have to create a charmap-like control that will be used in a larger project. Any ideas?
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, that’s what you’ll need to pinvoke. Graphics.GetHdc() gets you a device context handle. Font.ToHfont() gets you a font handle. Pinvoke SelectObject to select the font into the device context and its ready for use. Be sure to restore everything when you’re done. Visit pinvoke.net for the declarations you’ll need.