Table of Contents

Class SystemFontFallbackResolver

Namespace
SixLabors.Fonts
Assembly
SixLabors.Fonts.dll

Resolves fallback font families from the fonts installed on the current machine using the operating system's character-to-font matching service. Results depend on the machine's installed fonts: the same input can resolve different families, or none, on different machines.

public sealed class SystemFontFallbackResolver : IFontFallbackResolver
Inheritance
SystemFontFallbackResolver
Implements
Inherited Members

Methods

TryResolve(CodePoint, FontFamily, FontStyle, CultureInfo?, out FontFamily)

Tries to resolve a font family containing a glyph for the given code point.

public bool TryResolve(CodePoint codePoint, FontFamily requestedFamily, FontStyle style, CultureInfo? culture, out FontFamily family)

Parameters

codePoint CodePoint

The code point no configured font can shape.

requestedFamily FontFamily

The family of the requested font, usable as a hint to bias matching toward stylistically compatible faces.

style FontStyle

The requested font style.

culture CultureInfo

The culture used to select language specific faces, or null.

family FontFamily

When this method returns true, the resolved font family.

Returns

bool

true if a family was resolved; otherwise, false.