Click or drag to resize

PdfFontResource Class

PdfFontResource represents a typographic font that will be used for placing text on a page in a PDF document. This object represents the font as a whole and not a rendering of the font in a specific size. Font resources represent a single style of the font and not a family of fonts. For example, Basketball Overextended and Basketball Overextended Bold are considered to be two different fonts, even if conceptually they are in the same family.
Inheritance Hierarchy
SystemObject
  Atalasoft.PdfDoc.Generating.ResourceHandlingPdfResource
    Atalasoft.PdfDoc.Generating.ResourceHandling.FontsPdfFontResource

Namespace:  Atalasoft.PdfDoc.Generating.ResourceHandling.Fonts
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public class PdfFontResource : PdfResource

The PdfFontResource type exposes the following members.

Constructors
  NameDescription
Protected methodPdfFontResource
Initializes a new instance of the PdfFontResource class.
Top
Properties
  NameDescription
Public propertyCode exampleFontFamily
Gets the name of the font's family. For example, the font Armageddon Light would have the FontFamily "Armageddon"
Public propertyCode exampleFontSubFamily
Gets the font sub family name such as "Bold" or "Condensed".
Public propertyCode exampleMetrics
Gets the an object that can be used for measuring text in the font.
Top
Methods
  NameDescription
Public methodDispose
Disposes the resource.
(Inherited from PdfResource.)
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources
(Inherited from PdfResource.)
Protected methodDisposeManagedResources
Disposes the managed resources.
(Inherited from PdfResource.)
Protected methodDisposeUnmanagedResources
Disposes the unmanaged resources.
(Inherited from PdfResource.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Releases unmanaged resources and performs other cleanup operations before the PdfResource is reclaimed by garbage collection.
(Inherited from PdfResource.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also