Constructs a Font-object.

Namespace: iTextSharp.text
Assembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0

Syntax

C#
public static Font GetFont(
	string fontname,
	string encoding,
	bool embedded,
	float size,
	int style,
	Color color,
	bool cached
)
Visual Basic
Public Shared Function GetFont ( _
	fontname As String, _
	encoding As String, _
	embedded As Boolean, _
	size As Single, _
	style As Integer, _
	color As Color, _
	cached As Boolean _
) As Font
Visual C++
public:
static Font^ GetFont(
	String^ fontname, 
	String^ encoding, 
	bool embedded, 
	float size, 
	int style, 
	Color^ color, 
	bool cached
)

Parameters

fontname
Type: System..::..String
the name of the font
encoding
Type: System..::..String
the encoding of the font
embedded
Type: System..::..Boolean
true if the font is to be embedded in the PDF
size
Type: System..::..Single
the size of this font
style
Type: System..::..Int32
the style of this font
color
Type: iTextSharp.text..::..Color
the Color of this font
cached
Type: System..::..Boolean
true if the font comes from the cache or is added to the cache if new, false if the font is always created new

Return Value

a Font object

See Also