Class FontCollectionExtensions
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
collectionFontCollectionThe 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
collectionFontCollectionThe font collection.
matchPredicate<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.