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.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- familyName
- Type: System.String
The family name or names that comprise the new FontFamily. See "Font Family Grammar" in 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. |
Show: