CustomFontRegistry Members

The CustomFontRegistry type exposes the following members.

Constructors

Name Description
Public method CustomFontRegistry

Creates the empty customer's font registry.

Methods

Name Description
Public method Add Overloaded.

Adds a font to the customer's font registry, resolving a collision with an already-registered font per PostscriptNameCollisionPolicy and FamilyStyleCollisionPolicy.

Public method AddFontAlias

Adds an extra postscript-name-like lookup key to an already-registered font.

Public method Clear

Deletes all fonts from the customer's font registry.

Public method Contains Overloaded.

Checks whether the FontRegistry contains a given font.

Public method CreateFont Overloaded.

Returns the Font instance with the given parameters if such font is presented in the FontRegistry.

Public method Dispose

Releases all resources used by this FontRegistry.

(Inherited from FontRegistry.)
Public method Equals (Inherited from Object.)
Public method GetFontStyles

Returns the available font styles for the given font family.

(Inherited from FontRegistry.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Merge Overloaded.

Adds every font from another FontRegistry into this registry. This is much faster than re-adding the same fonts via Add(String), since it reuses the source registry's already-parsed font data instead of re-parsing the font files.

Public method Remove

Removes a font from the customer's font registry.

Public method RemoveFontAlias

Removes a previously-added user alias from an already-registered font.

Public method ToString (Inherited from Object.)
Public method TryGetPostscriptName

Looks up the postscript name of the font registered under the given family and style, without throwing if none is found.

(Inherited from FontRegistry.)

Properties

Name Description
Public property FallbackFonts

The collection of the fonts where a substitution for glyphs is searched.

(Inherited from FontRegistry.)
Public property Families

Gets the collection of the font families represented in the FontRegistry.

(Inherited from FontRegistry.)
Public property FamilyStyleCollisionPolicy

Gets or sets how Add(String) and Merge(FontRegistry) resolve a font whose (family, style) pair is already claimed by a different already-registered font.

Public property Fonts

Gets the FontInfo collection of the fonts presented in the FontRegistry.

(Inherited from FontRegistry.)
Public property PostscriptNameCollisionPolicy

Gets or sets how Add(String) and Merge(FontRegistry) resolve a font whose postscript name is already claimed by a different already-registered font.

Events

Name Description
Public event FontMissing

Occurs when the font used in a text element is missing from the font registry.

See Also

Reference