[]
Validates that the requested font style is available for the specified font family, falling back to an available style if needed.
public static FontStyle ValidateStyle(string fontName, FontStyle fontStyle)
| Type | Name | Description |
|---|---|---|
| string | fontName | The name of the font family to validate against. |
| FontStyle | fontStyle | The desired FontStyle. |
| Type | Description |
|---|---|
| FontStyle | The validated FontStyle, adjusted to an available style if the requested one is not supported. |