Tries to find the first matching font.

Namespace: TallComponents.PDF.Fonts
Assembly: TallComponents.PDF.Kit (in TallComponents.PDF.Kit.dll) Version: 3.0.69.1

Syntax

C#
public static Font Create(
	string familyName,
	bool bold,
	bool italic,
	string additionalFontFolders
)
Visual Basic
Public Shared Function Create ( _
	familyName As String, _
	bold As Boolean, _
	italic As Boolean, _
	additionalFontFolders As String _
) As Font

Parameters

familyName
Type: System..::..String
The font family to look for.
bold
Type: System..::..Boolean
True if a bold font needs to be resolved.
italic
Type: System..::..Boolean
True if a bold font needs to be resolved.
additionalFontFolders
Type: System..::..String
One or more paths (semicolon [;] seperated) to folder(s) with TTF documents.

Return Value

The font or null if none found.

Remarks

First the additionalFontFolders (from left to right if multiple are specified) will be used to find, if this doesn't result in any font, the windows folder will be tried.

See Also