Documents for PDF, .NET Edition Documentation
FontCollection Class Members
Properties  Methods 

GrapeCity.Documents.Common Assembly > GrapeCity.Documents.Text Namespace : FontCollection Class

The following tables list the members exposed by FontCollection.

Public Constructors
 NameDescription
Public ConstructorInitializes a new instance of the FontCollection class.  
Top
Public Properties
 NameDescription
Public Property (Inherited from System.Collections.ObjectModel.Collection<Font>)
Public PropertyGets or sets the default font.  
Public Property (Inherited from System.Collections.ObjectModel.Collection<Font>)
Public PropertyGets an object that can be used to synchronize access to the FontCollection.  
Public Propertystatic (Shared in Visual Basic)Gets the collection of system fonts.  
Top
Public Methods
 NameDescription
Public Method (Inherited from System.Collections.ObjectModel.Collection<Font>)
Public MethodAppends one or more font family names to the internal list of fallback font families.  
Public MethodAppends one or more fonts to the internal fallback font list.  
Public MethodAppends fonts from the specified list to the collection.  
Public MethodSearches for a fallback font containing the given code point that looks similar to the source font.  
Public Method (Inherited from System.Collections.ObjectModel.Collection<Font>)
Public MethodClears the internal list of fallback font families.  
Public MethodClears the internal list of fallback fonts.  
Public Method (Inherited from System.Collections.ObjectModel.Collection<Font>)
Public Method (Inherited from System.Collections.ObjectModel.Collection<Font>)
Public MethodOverloaded. Searches for a font with the specified family name and style.  
Public MethodSearches for the first font having the specified file name.  
Public MethodSearches for the first font having the specified font path.  
Public MethodSearches for the first font with specified full name.

Full font name that reflects all family and relevant subfamily descriptors.

 
Public MethodGets a snapshot of the internal list of fallback font families.  
Public MethodGets a snapshot of the internal fallback font list.  
Public Method (Inherited from System.Collections.ObjectModel.Collection<Font>)
Public Method (Inherited from System.Collections.ObjectModel.Collection<Font>)
Public MethodOverloaded. Loads all fonts from a specified byte array into the collection.

Use the RegisterFont method if there is a font file.

 
Public MethodAppends all fonts (*.ttf, *.otf, *.ttc files) from the specified folder to the FontCollection.  
Public MethodAppends all fonts from the specified font file to the collection.  
Public Method (Inherited from System.Collections.ObjectModel.Collection<Font>)
Public Method (Inherited from System.Collections.ObjectModel.Collection<Font>)
Public MethodRemoves one or more font family names from the internal list of fallback font families.  
Public MethodRemoves one or more fonts from the internal fallback font list.  
Public MethodOverloaded. Returns the list of fonts with the specified family name.  
Public MethodOverloaded. Returns the list of fonts having the same specified file name.  
Public MethodOverloaded. Returns the list of fonts having the same specified font path.  
Public MethodOverloaded. Returns the list of fonts with the specified full name.

Full font name that reflects all family and relevant subfamily descriptors.

 
Public MethodOverloaded. 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.

 
Top
See Also

Reference

FontCollection Class
GrapeCity.Documents.Text Namespace