PdfFontManagerCreateFont Method
Creates a custom font from a TrueType or OpenType file
Namespace: Winnovative.Pdf.ChromiumAssembly: Winnovative.Pdf.Chromium (in Winnovative.Pdf.Chromium.dll) Version: 19.5.0
public static PdfFont CreateFont(
string fontPath,
float fontSize,
PdfFontStyle style,
PdfColor color
)
- 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
PdfFontA PdfFont instance for use in text elements