InstalledFontFallbackOptions Class

Options of the fallback of a FontStack to the installed fonts. Instances are immutable and can be shared.

public sealed class InstalledFontFallbackOptions

Constructors

NameDescription
InstalledFontFallbackOptions()

InstalledFontFallbackOptions()

InstalledFontFallbackOptions.cs
public InstalledFontFallbackOptions()

No documentation is available.

Properties

NameDescription
DefaultGets the default options.
LoadOptionsGets the options the installed fonts are loaded with. Defaults to FontLoadOptions.Default.
PreferredFamiliesGets the families that are looked in first, in order, for a character the fonts of the stack do not have, before the families the platform usually uses for it. Empty by default.

Gets the default options.

public static InstalledFontFallbackOptions Default { get; }

Gets the options the installed fonts are loaded with. Defaults to FontLoadOptions.Default.

public FontLoadOptions LoadOptions { get; init; }

Property value

FontLoadOptions

Exceptions

ArgumentNullException
The value is null.

Gets the families that are looked in first, in order, for a character the fonts of the stack do not have, before the families the platform usually uses for it. Empty by default.

public IReadOnlyList<string> PreferredFamilies { get; init; }

Property value

IReadOnlyList<string>

Exceptions

ArgumentNullException
The value, or one of its names, is null.