PdfFont.CreatePdfFont Method

PDF File Writer

PdfFontCreatePdfFont Method

PDF Font resource constructor

Namespace:  PdfFileWriter
Assembly:  PdfFileWriter (in PdfFileWriter.dll) Version: 1.1.24.0 (1.1.24.0)
Syntax
C#
public static PdfFont CreatePdfFont(
	PdfDocument Document,
	string FontFamilyName,
	FontStyle FontStyle,
	bool EmbeddedFont = true
)

Parameters

Document
Type: PdfFileWriterPdfDocument
Document object
FontFamilyName
Type: SystemString
Font family name
FontStyle
Type: System.DrawingFontStyle
Font style
EmbeddedFont (Optional)
Type: SystemBoolean
Embedded font

Return Value

Type: PdfFont
PdfFont resource
Remarks
The returned result is either a new PdfFont or an existing one with the same properties.
See Also