RenderingFont

RenderingFont class

Font for rendering.

Constructors

NameDescription
RenderingFontInitializes a new instance of the RenderingFont

Properties

NameTypeDescription
NameStringGets name of the font.
SizeNumberGets size of the font in points.
BoldbooleanGets or sets bold for the font.
ItalicbooleanGets or sets italic for the font.
ColorColorGets or sets color for the font.

RenderingFont(fontName, fontSize)

Initializes a new instance of the RenderingFont

ParameterTypeDescription
fontNameStringfont name
fontSizeNumberfont size in points

RenderingFont.Name property

Gets name of the font.

Type: String

RenderingFont.Size property

Gets size of the font in points.

Type: Number

RenderingFont.Bold property

Gets or sets bold for the font.

Type: boolean

RenderingFont.Italic property

Gets or sets italic for the font.

Type: boolean

RenderingFont.Color property

Gets or sets color for the font.

Type: Color