Quote Originally Posted by jmcilhinney View Post
There's no property or method that will give you the list you want. What you have to do is, once you've got a Font, get its FontFamily first and then call IsStyleAvailable on that for each FontStyle value. Note that you're going to have to call it for composite values as well as discrete, e.g
vb.net Code:
  1. Dim availableStyles As List(Of FontStyle)
  2.  
  3. If myFontFamily.IsStyleAvailable(FontStyle.Bold) Then
  4.     availableStyles.Add(FontStyle.Bold)
  5. End If
  6.  
  7. If myFontFamily.IsStyleAvailable(FontStyle.Italic) Then
  8.     availableStyles.Add(FontStyle.Italic)
  9. End If
  10.  
  11. If myFontFamily.IsStyleAvailable(FontStyle.Bold Or FontStyle.Italic) Then
  12.     availableStyles.Add(FontStyle.Bold Or FontStyle.Italic)
  13. End If
You can make it nicer than that but you get the idea.
Yes..!..Yes..! this is i am expecting one .......
but different fonts has different Styles Name ...
how can i find that Mr.jmcilhinney