RenderingFont

RenderingFont class

Font for rendering.

class RenderingFont;

Constructors

NameDescription
constructor(string, number)Initializes a new instance of the RenderingFont

Properties

PropertyTypeDescription
namestringReadonly. Gets name of the font.
sizenumberReadonly. Gets 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.

constructor(string, number)

Initializes a new instance of the RenderingFont

constructor(fontName: string, fontSize: number);

Parameters:

ParameterTypeDescription
fontNamestringfont name
fontSizenumberfont size in points

name

Readonly. Gets name of the font.

name : string;

size

Readonly. Gets size of the font in points.

size : number;

bold

Gets or sets bold for the font.

bold : boolean;

italic

Gets or sets italic for the font.

italic : boolean;

color

Gets or sets color for the font.

color : Color;