Gdi |
public class GdiFontManager
The GdiFontManager type exposes the following members.
Name | Description | |
---|---|---|
![]() | GdiFontManager | Initializes a new instance of the GdiFontManager class. |
Name | Description | |
---|---|---|
![]() ![]() | _instance | |
![]() ![]() | GenericSansSerifFontFamilyName | Gets the GDI generic sans serif font family name |
Name | Description | |
---|---|---|
![]() | AddSystemGdiFontFamilies | Builds the GDI font families dictionary. |
![]() ![]() | ConvertFontXStyleToFontStylePresence | Converts a FontXStyle instance to a FontStylePresence instance. The styles 'Underline' and 'Strikeout' will not be considered for the conversion. |
![]() | Dispose | Releases all resources used by the GdiFontManager |
![]() | EhAnnounceConstructionOfFontX | Is called upon every construction of a FontX instance. |
![]() | EhAnnounceDestructionOfFontX | Is called upon every destruction of a FontX instance. |
![]() | EhInstalledFontsChanged | Called when the installed fonts changed during execution of this program. |
![]() ![]() | EnumerateAvailableGdiFontFamilyNames | Enumerates the available GDI font family names. |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
![]() ![]() | FontFamilyArrayToFontStylePresence | |
![]() ![]() | FontStyleToIndex | Gives the index of the font style. Not taken into account are Underline and Italic. These two flags are ignored. |
![]() ![]() | GetFontStylePresence(FontFamily) | Finds out which font styles are available for the given Gdi font family. |
![]() ![]() | GetFontStylePresence(FontFamily, FontFamily) | Finds out which font styles are available for the given Gdi font family. |
![]() ![]() | GetFontX | Constructs a font from a font family name, the size and font style. |
![]() ![]() | GetFontXGenericSansSerif | Gets a FontX instance of a generic sans serif font with the provided size and style. |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object) |
![]() ![]() | GetHeight | Gets the height of the font in points (1/72 inch). |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object) |
![]() ![]() | GetValidFontFamilyName | Gets the family name from a FontX instance. If this font family name does not exist, a generic sans serif font family name is returned instead. |
![]() | InternalBuildDictionaries | Build the font dictionaries. |
![]() | InternalGetAvailableFontFamilies | Gets all available font families and stores them in the provided dictionary. |
![]() | InternalGetFontFamilyNameGenericSansSerif | |
![]() | InternalGetGdiFontFromFamilyAndSizeAndStyle | Gets a GDI font from the the family name, size and style. |
![]() | InternalGetGdiFontFromInvariantString | Gets a GDI font from the invariant string. |
![]() | InternalIsFontFamilyAndStyleAvailable | Determines whether a font with the given font family name and font style is available. |
![]() | InternalIsFontFamilyAvailable | Determines whether a font family with the provided name is available. |
![]() | InternalToGdi | Retrieves the Gdi+ font instance that the provided FontX argument is describing. |
![]() ![]() | IsFontFamilyAndStyleAvailable | Determines whether a font with the given font family name and font style is available. |
![]() ![]() | IsFontFamilyAvailable | Determines whether a font family with the provided name is available. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
![]() | SplitInvariantDescriptionString | Splits an invariant description string into its parts |
![]() ![]() | ToGdi | Retrieves the Gdi+ font instance that the provided FontX argument is describing. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object) |
Name | Description | |
---|---|---|
![]() | _dictDescriptionStringToGdiFont | Corresponds the font's invariant description string with the Gdi+ font instance. Key is the invariant description string, value is the Gdi font instance with the specific style and size. |
![]() | _dictWin32FamilyNameToGdiFontFamilyAndPresence | Dictionary of the Gdi font families. Key is the Win32FamilyName, value is an array[4] of FontFamily with represent the styles regular, bold, italic, and bold-Italic. For system fonts, the 4 font family instances will be identical, but due to a bug in Windows 10, to create a private font family we need to load each font file in a separate PrivateFontCollection, thus creating a separate FontFamily for each style. |
![]() | _gdiFontReferenceCounter | Corresponds the font's invariant description string with a reference counter. It counts the number of FontX instances with this description string. When the reference counter falls down to zero, the Gdi+ font instance can be released. |
![]() ![]() | _instanceCached | The instance used by the static methods of this class. Is not neccessarily of type GdiFontManager, but could also be a derived type. |
![]() ![]() | IdxBold | The index into the FontFamily array for the bold style. |
![]() ![]() | IdxBoldItalic | The index into the FontFamily array for the bold-italic style. |
![]() ![]() | IdxItalic | The index into the FontFamily array for the italic style. |
![]() ![]() | IdxRegular | The index into the FontFamily array for the regular style. |