FontFamily Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the FontFamily class from the specified font family string.

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

Syntax

Public Sub New ( _
    familyName As String _
)
public FontFamily(
    string familyName
)

Parameters

Remarks

Constructing a FontFamily in code uses a string for initialization, with a grammar that parallels how you define a FontFamily value in XAML.

Font Family Grammar

fontFamilyName

fontFamilyName

A string that names the primary font.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

FontFamily Class

System.Windows.Media Namespace

Other Resources

Text and fonts for Windows Phone