When working with different fonts, some might support, say, arabic characters where another might not.
Is there a way in C# to figure out what character ranges are supported by a specific font?
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.
You would need to P/Invoke GetFontUnicodeRanges(). Not easy to do because the font needs to be selected in the device context, that requires more p/invoke.
But most of all, it isn’t the right thing to do. You should rely on Windows’ automatic font linking, it finds another font if necessary to supply the glyph. The feature is described in this article.