Table of Contents

Class FontCollectionExtensions

Namespace
SixLabors.Fonts
Assembly
SixLabors.Fonts.dll

Extension methods for IFontCollection.

public static class FontCollectionExtensions
Inheritance
FontCollectionExtensions
Inherited Members

Methods

AddSystemFonts(FontCollection)

Adds the fonts from the SystemFonts collection to this FontCollection.

public static FontCollection AddSystemFonts(this FontCollection collection)

Parameters

collection FontCollection

The font collection.

Returns

FontCollection

The FontCollection containing the system fonts.

AddSystemFonts(FontCollection, Predicate<FontMetrics>)

Adds the fonts from the SystemFonts collection to this FontCollection.

public static FontCollection AddSystemFonts(this FontCollection collection, Predicate<FontMetrics> match)

Parameters

collection FontCollection

The font collection.

match Predicate<FontMetrics>

The Predicate<T> delegate that defines the conditions of FontMetrics to add into the font collection.

Returns

FontCollection

The FontCollection containing the system fonts.