RenderingFont

RenderingFont class

Font for rendering.

class RenderingFont;

Constructors

ConstructorDescription
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.

Methods

MethodDescription
getName()@deprecated. Please use the ’name’ property instead. Gets name of the font.
getSize()@deprecated. Please use the ‘size’ property instead. Gets size of the font in points.
getBold()@deprecated. Please use the ‘bold’ property instead. Gets or sets bold for the font.
setBold(boolean)@deprecated. Please use the ‘bold’ property instead. Gets or sets bold for the font.
getItalic()@deprecated. Please use the ‘italic’ property instead. Gets or sets italic for the font.
setItalic(boolean)@deprecated. Please use the ‘italic’ property instead. Gets or sets italic for the font.
getColor()@deprecated. Please use the ‘color’ property instead. Gets or sets color for the font.
setColor(Color)@deprecated. Please use the ‘color’ property instead. 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

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;

getName()

@deprecated. Please use the ’name’ property instead. Gets name of the font.

getName() : string;

getSize()

@deprecated. Please use the ‘size’ property instead. Gets size of the font in points.

getSize() : number;

getBold()

@deprecated. Please use the ‘bold’ property instead. Gets or sets bold for the font.

getBold() : boolean;

setBold(boolean)

@deprecated. Please use the ‘bold’ property instead. Gets or sets bold for the font.

setBold(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getItalic()

@deprecated. Please use the ‘italic’ property instead. Gets or sets italic for the font.

getItalic() : boolean;

setItalic(boolean)

@deprecated. Please use the ‘italic’ property instead. Gets or sets italic for the font.

setItalic(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getColor()

@deprecated. Please use the ‘color’ property instead. Gets or sets color for the font.

getColor() : Color;

Returns

Color

setColor(Color)

@deprecated. Please use the ‘color’ property instead. 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;