Link Search Menu Expand Document

FontFromFile Method (String, Single, Boolean, Boolean)

Creates a Bytescout.PDF.Font from the specified file.

Namespace:Bytescout.PDF
Assembly: Bytescout.PDF (in Bytescout.PDF.dll) Version: 3.5.1.1204-master
Syntax
public static Font FromFile(
	string fileName,
	float emSize,
	bool underline,
	bool strikeout
)

Parameters

fileName
Type: SystemString
A string that contains the name of the file from which to create the Bytescout.PDF.Font.
emSize
Type: SystemSingle
The em-size, in points, of the font.
underline
Type: SystemBoolean
If set to true, the initialized font will be underlined.
strikeout
Type: SystemBoolean
If set to true, the initialized font will be stroked out.

Return Value

Type: Font
The Bytescout.PDF.Font this method creates.
See Also

Reference