PdfBaseFontCreateFont(Single, PdfFontStyle, PdfColor) Method

Creates a font using this base font

Definition

Namespace: HiQPdf.Next
Assembly: HiQPdf.Next (in HiQPdf.Next.dll) Version: 18.9.2
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