Table of Contents

Interface IFontFallbackResolver

Namespace
SixLabors.Fonts
Assembly
SixLabors.Fonts.dll

Resolves a font family for code points that no configured font can shape. The shaping pipeline consults the resolver only after Font and every FallbackFontFamilies entry have attempted the text, and at most once per distinct unresolved code point per shaping operation.

public interface IFontFallbackResolver

Methods

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

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

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.