FontCollectionAdd(String, Single, FontStyle) Method
Adds a system font to the fonts collection. The font is created from the specified file with the specified style.
If the font was already added the method returns the existing font.
Namespace: Winnovative.ExcelToPdfAssembly: WnvExcelToPdf_NetCore (in WnvExcelToPdf_NetCore.dll) Version: 12.0.0
public PdfFont Add(
string fontFilename,
float fontSizePoints,
FontStyle fontStyle
)
Public Function Add (
fontFilename As String,
fontSizePoints As Single,
fontStyle As FontStyle
) As PdfFont
public:
PdfFont^ Add(
String^ fontFilename,
float fontSizePoints,
FontStyle fontStyle
)
member Add :
fontFilename : string *
fontSizePoints : float32 *
fontStyle : FontStyle -> PdfFont
- fontFilename String
- The file name of the font to be added.
- fontSizePoints Single
- The font size in points.
- fontStyle FontStyle
- The style of the font to be added.
PdfFontThe font added to the collection.