PdfBaseFontCreateFont(Single, PdfFontStyle, PdfColor) Method

Creates a font using this base font

Definition

Namespace: Winnovative.Pdf.Next
Assembly: Winnovative.Pdf.Next (in Winnovative.Pdf.Next.dll) Version: 20.10.0
C#
public PdfFont CreateFont(
	float fontSize,
	PdfFontStyle style,
	PdfColor color
)

Parameters

fontSize  Single
Font size in points
style  PdfFontStyle
Font style flags. Bold and italic are always applied artificially on top of the underlying font - the font file itself is not changed. To avoid unintended double-bold or double-italic, pass Normal when this base font was already loaded from a bold or italic font file
color  PdfColor
Font color

Return Value

PdfFont
A font instance for text rendering

See Also