Table of Contents

Interface IReadOnlySystemFontCollection

Namespace
SixLabors.Fonts
Assembly
SixLabors.Fonts.dll

Represents a readonly collection of Operating System fonts.

public interface IReadOnlySystemFontCollection : IReadOnlyFontCollection
Inherited Members

Properties

SearchDirectories

Gets the collection of Operating System directories that were searched for font families.

IEnumerable<string> SearchDirectories { get; }

Property Value

IEnumerable<string>

Methods

TryMatchCharacter(CodePoint, FontStyle, string?, CultureInfo?, out FontMatch)

Tries to match a character to an installed system font.

bool TryMatchCharacter(CodePoint codePoint, FontStyle style, string? familyName, CultureInfo? culture, out FontMatch match)

Parameters

codePoint CodePoint

The code point to match.

style FontStyle

The requested font style.

familyName string

The requested font family name, or null.

culture CultureInfo

The culture used for matching, or null.

match FontMatch

When this method returns, contains the matched font if one was found; otherwise, the default value. This parameter is passed uninitialized.

Returns

bool

true if a matching system font was found; otherwise, false.