Find a font from a specific family, with a given style.
[C#] static XFont FindByStyle(string family, FontWeight weight, bool italic) static XFont FindByStyle(string family, int weight, bool italic) static XFont FindByStyle(IEnumerable<XFont> fonts, int weight, int weightTolerance, bool italic)
static XFont FindByStyle(string family, FontWeight weight, bool italic) static XFont FindByStyle(string family, int weight, bool italic) static XFont FindByStyle(IEnumerable<XFont> fonts, int weight, int weightTolerance, bool italic)
This function finds a font from a specific family or among the given fonts, with a given style.
If no matching font can be found, then the function will return null.
The desired weight can be passed in either as an integer or as a value from the FontWeight enumeration.
None.