Share via


FontRenderingEmSize

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

Gets or sets the em size used for rendering the Glyphs.

<object FontRenderingEmSize="Double"  .../>
value = object.FontRenderingEmSize
object.FontRenderingEmSize = value

Property Value

Type: Double

A value that represents the em size used for rendering.

This property is read/write. The default value is 0.

Managed Equivalent

FontRenderingEmSize

Remarks

Em size is a typographical measure that specifies the approximate width of the capital letter "M" in the Roman alphabet, measured in the units that are prevalent in a particular technology. Silverlight em sizes are given in pixels. The apparent visual size of the em size varies per font.

Note that the default FontRenderingEmSize is 0. Therefore, in order to render anything with Glyphs, you should specify a FontRenderingEmSize either in XAML or script. This is in contrast to TextBlock, in which font sizing defaults to 14.666 (pixels).

Applies To

Glyphs

See Also

Reference