FontIconSource.FontFamily Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the font used to display the icon glyph.
FontFamily FontFamily();
void FontFamily(FontFamily value);
public FontFamily FontFamily { get; set; }
var fontFamily = fontIconSource.fontFamily;
fontIconSource.fontFamily = fontFamily;
Public Property FontFamily As FontFamily
<FontIconSource FontFamily="fontFamilyValue"/>
Property Value
The font used to display the icon glyph. The default is the font family defined by the SymbolThemeFontFamily
theme resource (see Remarks).
Examples
<FontIcon FontFamily="Segoe UI Emoji" Glyph="▶"/>
Remarks
If you don't specify a FontFamily
, or you specify a FontFamily
that is not available on the system at runtime, the FontIcon
falls back to the default font family defined by the SymbolThemeFontFamily
theme resource.
By default, Windows uses the Segoe Fluent Icon font family. If your app is run on Windows 10, version 20H2 or earlier, the Segoe Fluent Icon font family is not available and the SymbolThemeFontFamily
resource falls back to the Segoe MDL2 Asset font family instead.
To use glyphs from the default system font, don't set the FontFamily
property, let it use its default value instead.