Class FontCollectionExtensions
Extension methods for IFontCollection.
Inherited Members
Namespace: SixLabors.Fonts
Assembly: SixLabors.Fonts.dll
Syntax
public static class FontCollectionExtensions
Methods
| Edit this page View SourceAddSystemFonts(FontCollection)
Adds the fonts from the SystemFonts collection to this FontCollection.
Declaration
public static FontCollection AddSystemFonts(this FontCollection collection)
Parameters
Type | Name | Description |
---|---|---|
FontCollection | collection | The font collection. |
Returns
Type | Description |
---|---|
FontCollection | The FontCollection containing the system fonts. |
AddSystemFonts(FontCollection, Predicate<FontMetrics>)
Adds the fonts from the SystemFonts collection to this FontCollection.
Declaration
public static FontCollection AddSystemFonts(this FontCollection collection, Predicate<FontMetrics> match)
Parameters
Type | Name | Description |
---|---|---|
FontCollection | collection | The font collection. |
Predicate<FontMetrics> | match | The Predicate<T> delegate that defines the conditions of FontMetrics to add into the font collection. |
Returns
Type | Description |
---|---|
FontCollection | The FontCollection containing the system fonts. |