FontCollection Class

Represents a collection of fonts in a PDF document.

Definition

Namespace: Winnovative
Assembly: WnvHtmlToPdf_NetCore (in WnvHtmlToPdf_NetCore.dll) Version: 18.0.0
C#
public class FontCollection : IEnumerable
Inheritance
Object    FontCollection
Implements
IEnumerable

Constructors

FontCollection Creates a font collection for the specified PDF document

Properties

Item Gets the font from the specified index.

Methods

Add(Byte) Adds a system font to the fonts collection. The font is created from the specified font data. If the font was already added the method returns the existing font.
Add(Font) Adds a system font to the fonts collection. If the font was already added the method returns the existing font.
Add(PdfFont) Adds a PDF font to the fonts collection. If the font was already added the method returns the existing font.
Add(StandardCJKFont) Adds a standard CJK font to the collection. If the font was already added the method returns the existing font.
Add(StdFontBaseFamily) Adds a standard font to the collection. If the font was already added the method returns the existing font.
Add(String) Adds a system font to the fonts collection. The font is created from the specified file. If the font was already added the method returns the existing font.
Add(Font, Boolean) Adds a system font to the fonts collection. If the font was already added the method returns the existing font. The embedFont property says if the added font will be embedded into the PDF document
Add(Byte, Single, FontStyle) Adds a system font to the fonts collection. The font is created from the specified font data with the specified style. If the font was already added the method returns the existing font.
Add(String, Single, FontStyle) Adds a system font to the fonts collection. The font is created from the specified file with the specified style. If the font was already added the method returns the existing font.
AddRange Adds a set of fonts to the fonts collection.
Contains Checks if the specified font belongs to the fonts collection.
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetEnumerator Gets the collection enumerator.
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
IndexOf Returns the index of the specified font in the fonts collection.
Insert Inserts a font to the specified index in collection.
MemberwiseClone
(Inherited from Object)
Remove Removes the specified font from the fonts collection.
ToString
(Inherited from Object)

See Also