CustomFontRegistry Methods

The CustomFontRegistry type exposes the following members.

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.)

See Also

Reference