PdfFontManager Class |
Namespace: Atalasoft.PdfDoc.Generating.ResourceHandling.Fonts
The PdfFontManager type exposes the following members.
Name | Description | |
---|---|---|
PdfFontManager |
Constructs a new instance of the PdfFontManager class and sets its default embedding policy.
A PdfFontManager is constructed for client code in the GlobalResources class. Client code will rarely if ever
need to construct this class.
|
Name | Description | |
---|---|---|
DefaultEmbeddingPolicyProvider |
Gets the default embedding policy provider for the font manager.
| |
EmbeddingPolicyProvider |
Gets or sets the embedding policy provider for the font resource manager.
| |
Item |
Gets the resource with the specified s.
(Inherited from PdfResourceManagerT.) | |
ResourceClass |
Gets the resource class.
(Overrides PdfResourceManagerTResourceClass.) | |
ResourceNames |
Gets the resource names for this resource manager.
(Inherited from PdfResourceManagerT.)Examples foreach (string name in globalResources.Images.ResourceNames) { Console.WriteLine("resource name: " + name); } | |
StandardType1Fonts |
Gets a list of the standard Type 1 fonts.
|
Name | Description | |
---|---|---|
Add(T) |
Adds the specified resource with an auto-generated name.
(Inherited from PdfResourceManagerT.) | |
Add(String, T) |
Adds a resource to the resource manager. Throws ArgumentException if a resource with the same name is already present.
(Inherited from PdfResourceManagerT.) | |
AddFromFile |
Adds a new font resource using a new unique name from from a path to a true type font file.
| |
AddFromFont |
Adds a new font resource using a new unique name from Font object.
| |
AddFromFontName |
Adds a new font resource using a new unique named from the name of an installed font.
| |
AddStream |
Adds a new font resource using a new unique name from a stream that contains a true type font.
| |
Contains |
Determines whether or not the resource is present.
(Inherited from PdfResourceManagerT.) | |
Dispose |
Disposes all resources contained in this resource manager
(Inherited from PdfResourceManagerT.) | |
Dispose(Boolean) |
Releases unmanaged and - optionally - managed resources
(Inherited from PdfResourceManagerT.) | |
DisposeManagedResources |
Disposes the managed resources.
(Inherited from PdfResourceManagerT.) | |
DisposeUnmanagedResources |
Disposes the unmanaged resources.
(Inherited from PdfResourceManagerT.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize |
Releases unmanaged resources and performs other cleanup operations before the
PdfResourceManagerT is reclaimed by garbage collection.
(Inherited from PdfResourceManagerT.) | |
FromFile |
Constructs a new PdfFontResource from the path to a true type file.
| |
FromFont |
Constructs a new PdfFontResource from Font object.
| |
FromFontName |
Constructs a new PdfFontResource from the name of a font.
| |
FromStream |
Constructs a new PdfFontResource from a stream that contains a true type font.
| |
Get |
Gets a resource with the given name. Throws an exception if there is no resource present with that name.
(Inherited from PdfResourceManagerT.) | |
GetEmbeddingPolicy |
Gets the embedding policy for a particular font. This method will be called by DocumentRenderer objects or
PDF writer objects. There is typically no need to call it from client code. Calling this method from client code
will not affect how any given font is embedded.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsStandardFont | ||
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Merge |
Merges the set of resources, other, into this ResourceManager using the selector to resolve name conflicts.
(Inherited from PdfResourceManagerT.) | |
NextName |
Returns the next available auto-generated name for this resource.
(Inherited from PdfResourceManagerT.)string name = someResourceManager.NextName();
someResourceManager.Add(name, someResource); | |
RebuildAvailableFontList |
When new font resources are constructed by font name (instead of using the font stream directly), the font manager
uses a cached list of installed fonts on the client computer to avoid having to repeatedly search the available resources.
An application should call this method if it wishes to invalidate the list. This would allow an application to be aware
of new fonts installed while the application is running at the cost of some performance.
| |
Remove |
Removes the resource of the specified name. Throws an ArgumentException if name is not present.
(Inherited from PdfResourceManagerT.) | |
ResourcesMatch |
Compares two resources for equality. Default implementation returns false. Subclasses should override this method
(Overrides PdfResourceManagerTResourcesMatch(T, T).) | |
ThrowIfDisposed | (Inherited from PdfResourceManagerT.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGet |
Tries to get the specified resource.
(Inherited from PdfResourceManagerT.) |