Share via


FontFamily Class

Definition

Represents a family of related fonts.

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class FontFamily
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class FontFamily
Public Class FontFamily
<FontFamily>fontFamilyName[,fallbackFontFamilyName]*</FontFamily>
- or -
<object FontFamily="fontFamilyName[,fallbackFontFamilyName]*" ... />
-or-
<object FontFamily="[uri]fontFamilyName[,[uri]fallbackFontFamilyName]*" ... />
-or-
<object FontFamily="embeddedUri#fontFamilyName[,[uri]fallbackFontFamilyName]*" ... />
Inheritance
Object IInspectable FontFamily
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Version history

Windows version SDK version Value added
1511 10586 XamlAutoFontFamily

Constructors

FontFamily(String)

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

Properties

Source

Gets the font family name that is used to construct the FontFamily object.

XamlAutoFontFamily

Gets the default font family based on an app's language settings.

Applies to

See also