Represents the style of a font face (for instance, as normal or italic).
Public Structure FontStyle
public struct FontStyle
<object property="fontStylesPropertyName"/>
A static FontStyles property name, such as Normal or Italic.
The FontStyle type exposes the following members.
This structure provides compatibility between Silverlight JavaScript and WPF properties that specify a font style. The compatibility requirement is that in JavaScript, the relevant properties referenced FontStyle, which is an enumeration, whereas WPF relevant properties referenced FontStyles, a class with static properties.
FontStyle is the value type for Silverlight properties or attributes that specify a font style value, but you must use static properties of FontStyles to provide a FontStyle value. In XAML, you specify the name of a FontStyles property as the attribute value. This functionality is enabled by native XAML parsing behavior that processes the string value.
WPF supports a FontStyles value of Oblique. Silverlight 5 does not support an Oblique value.
Font style
Description
Italic
The characters in an italic font are truly slanted and appear as they were designed.
Normal
The characters in a normal, or roman, font are upright.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.