This question has been asked in practically every forum, including here but there are no acceptable answers anywhere that I can find. I'm beginning to think that there is actually no solution and I just have to wrap my code in a try/catch block and apologise to the user and ask them to pick another font.
I want to show a FontDialog
so that a user can change the fonts on a Chart
, however if the user selects a non-TrueType font, then an exception is thrown. GDI+ can only handle TrueType fonts.
How can I filter the fonts from the FontDialog which cannot be used with GDI+?