Creates a new font using provided stream with font bytes and adds the new font to the end of the collection of document fonts.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public PdfFont AddFont(
	Stream fontStream
)
VB
Public Function AddFont ( 
	fontStream As Stream
) As PdfFont

Parameters

fontStream
Type: System.IO.Stream
The stream with the font bytes.

Return Value

Type: PdfFont
The newly added PdfFont.

Remarks

Only TrueType and Type1 font files are supported by this method.

See Also