I'm working with application that :
give to the user change font name
change the font style and font size.
To show all available fonts I use:
Dim InstalledFonts As New InstalledFontCollection
' Gets the array of FontFamily objects associated with this FontCollection.
Dim fontfamilies() As FontFamily = InstalledFonts.Families()
' Populates font combobox with the font name
For Each fontFamily As FontFamily In fontfamilies
If Font.SystemFontName = True Then
Now sometimes user change the font. style that can't be used with selected font name and in this case the application hangs.
TextFont = New System.Drawing.Font(FontName, FontSize, FontStyle)
How can I check out if this font can be used or not.
I hope you can help me.