RenderingFont

RenderingFont class

Font for rendering.

class RenderingFont;

Constructors

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

Methods

MethodDescription
getName()Gets name of the font.
getSize()Gets size of the font in points.
getBold()Gets or sets bold for the font.
setBold(boolean)Gets or sets bold for the font.
getItalic()Gets or sets italic for the font.
setItalic(boolean)Gets or sets italic for the font.
getColor()Gets or sets color for the font.
setColor(Color)Gets or sets color for the font.
isNull()Checks whether the implementation object is null.

constructor(string, number)

Initializes a new instance of the RenderingFont

constructor(fontName: string, fontSize: number);

Parameters:

ParameterTypeDescription
fontNamestringfont name
fontSizenumberfont size in points

getName()

Gets name of the font.

getName() : string;

getSize()

Gets size of the font in points.

getSize() : number;

getBold()

Gets or sets bold for the font.

getBold() : boolean;

setBold(boolean)

Gets or sets bold for the font.

setBold(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getItalic()

Gets or sets italic for the font.

getItalic() : boolean;

setItalic(boolean)

Gets or sets italic for the font.

setItalic(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getColor()

Gets or sets color for the font.

getColor() : Color;

Returns

Color

setColor(Color)

Gets or sets color for the font.

setColor(value: Color) : void;

Parameters:

ParameterTypeDescription
valueColorThe value to set.

isNull()

Checks whether the implementation object is null.

isNull() : boolean;