
## RenderingFont class

Font for rendering.

```javascript
class RenderingFont;
```


## Constructors

| Name | Description |
| --- | --- |
| [constructor(string, number)](#constructor-string-number-)| Initializes a new instance of the [RenderingFont](../renderingfont/) |

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [name](#name--)| string | Readonly. Gets name of the font. |
| [size](#size--)| number | Readonly. Gets size of the font in points. |
| [bold](#bold--)| boolean | Gets or sets bold for the font. |
| [italic](#italic--)| boolean | Gets or sets italic for the font. |
| [color](#color--)| Color | Gets or sets color for the font. |


### constructor(string, number) {#constructor-string-number-}

Initializes a new instance of the [RenderingFont](../renderingfont/)

```javascript
constructor(fontName: string, fontSize: number);
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| fontName | string | font name |
| fontSize | number | font size in points |

### name {#name--}

Readonly. Gets name of the font.

```javascript
name : string;
```


### size {#size--}

Readonly. Gets size of the font in points.

```javascript
size : number;
```


### bold {#bold--}

Gets or sets bold for the font.

```javascript
bold : boolean;
```


### italic {#italic--}

Gets or sets italic for the font.

```javascript
italic : boolean;
```


### color {#color--}

Gets or sets color for the font.

```javascript
color : Color;
```



