[]
Represents a collection of system fonts.
public class SystemFontCollection : ReadOnlyCollection<Font>, IList, ICollection, IReadOnlyList<Font>, IReadOnlyCollection<Font>, IFontCollection, IList<Font>, ICollection<Font>, IEnumerable<Font>, IEnumerable
Public Class SystemFontCollection
Inherits ReadOnlyCollection(Of Font)
Implements IList, ICollection, IReadOnlyList(Of Font), IReadOnlyCollection(Of Font), IFontCollection, IList(Of Font), ICollection(Of Font), IEnumerable(Of Font), IEnumerable
Name | Description |
---|---|
DefaultFont | Gets or sets the default system font. If no system fonts were found, this value will be null. You can test for this condition at program startup, and assign a font to it if it is null. |
NoSystemFonts | Gets or sets a value indicating whether the automatic loading of system fonts is to be omitted in the static constructor of the FontCollection class. The default is false, and the FontCollection's static constructor loads all fonts installed in the system. This is usually fast and does not consume significant resources, but sometimes may cause problems (e.g. if an installed font file is corrupt). In such cases set this property to true at program startup, before accessing any members of the FontCollection class. |
Name | Description |
---|---|
AppendFallbackFontFamilies(params string[]) | Appends one or more font family names to the internal list of fallback font families. |
AppendFallbackFonts(params Font[]) | Appends one or more fonts to the internal fallback font list. |
ChooseFallbackFont(int, Font, bool, bool, bool, bool, bool) | Searches for a fallback font containing the given code point that looks similar to the source font. |
ClearFallbackFontFamilies() | Clears the internal list of fallback font families. |
ClearFallbackFonts() | Clears the internal list of fallback fonts. |
FindFamilyName(string, bool, bool) | Searches for a font with the specified family name and style. |
FindFamilyName(string[], bool, bool) | Searches for a font from the set of allowable font family names and the specified style. |
FindFileName(string) | Searches for the first font having the specified file name. |
FindFontPath(string) | Searches for the first font having the specified font path. |
FindFullName(string) | Searches for the first font with specified full name. Full font name that reflects all family and relevant subfamily descriptors. |
GetFallbackFontFamilies() | Gets a snapshot of the internal list of fallback font families. |
GetFallbackFonts() | Gets a snapshot of the internal fallback font list. |
RemoveFallbackFontFamilies(params string[]) | Removes one or more font family names from the internal list of fallback font families. |
RemoveFallbackFonts(params Font[]) | Removes one or more fonts from the internal fallback font list. |
SelectByFamilyName(string) | Returns the list of fonts with the specified family name. |
SelectByFamilyName(string, List<Font>) | Collects the fonts with the specified family name. |
SelectByFileName(string) | Returns the list of fonts having the same specified file name. |
SelectByFileName(string, List<Font>) | Collects the fonts having the same specified file name. |
SelectByFontPath(string) | Returns the list of fonts having the same specified font path. |
SelectByFontPath(string, List<Font>) | Collects the fonts having the same specified font path. |
SelectByFullName(string) | Returns the list of fonts with the specified full name. Full font name that reflects all family and relevant subfamily descriptors. |
SelectByFullName(string, List<Font>) | Collects the fonts with the specified full name. Full font name that reflects all family and relevant subfamily descriptors. |
SelectByTypographicFamilyName(string) | Returns the list of fonts with the specified typographic family name. The typographic family grouping doesn't impose any constraints on the number of faces within it, in contrast with the 4-style family grouping. |
SelectByTypographicFamilyName(string, List<Font>) | Collects the fonts with the specified typographic family name. The typographic family grouping doesn't impose any constraints on the number of faces within it, in contrast with the 4-style family grouping. |