RenderingFont
Contents
[
Hide
]RenderingFont class
Font for rendering.
class RenderingFont;
Constructors
Name | Description |
---|---|
constructor(string, number) | Initializes a new instance of the RenderingFont |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
fontName | string | font name |
fontSize | number | font 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:
Parameter | Type | Description |
---|---|---|
value | boolean | The 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:
Parameter | Type | Description |
---|---|---|
value | boolean | The value to set. |
getColor()
Gets or sets color for the font.
getColor() : Color;
Returns
setColor(Color)
Gets or sets color for the font.
setColor(value: Color) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | Color | The value to set. |
isNull()
Checks whether the implementation object is null.
isNull() : boolean;