PdfFontManagerCreateFont Method

Creates a custom font from a TrueType or OpenType file

Definition

Namespace: HiQPdf.Chromium
Assembly: HiQPdf.Chromium (in HiQPdf.Chromium.dll) Version: 17.5.0
C#
public static PdfFont CreateFont(
	string fontPath,
	float fontSize,
	PdfFontStyle style,
	PdfColor color
)

Parameters

fontPath  String
The path to the .ttf or .otf font file
fontSize  Single
Font size in points
style  PdfFontStyle
Font style flags
color  PdfColor
Font color

Return Value

PdfFont
A PdfFont instance for use in text elements

See Also