Freigeben über


Glyphs.FontRenderingEmSize Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the font size used for rendering the glyphs.

Namespace:  System.Windows.Documents
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Property FontRenderingEmSize As Double
public double FontRenderingEmSize { get; set; }
<Glyphs FontRenderingEmSize="double"/>

Property Value

Type: System.Double
The font size used for rendering the glyphs. The default is 0.

Remarks

Dependency property identifier field: FontRenderingEmSizeProperty

An em is a typographical unit of measurement. In Silverlight, an em is equal to the current font size.

NoteNote:

The default value for FontRenderingEmSize is 0. Therefore, in order to render anything with Glyphs, you should specify a FontRenderingEmSize either in XAML or code. This is in contrast to TextBlock, whose default font size is 11 pixels.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.