
## FontUnit class

**Namespace:** `Aspose.Barcode.Generation`


Defines a particular format for text, including font face, size, and style attributes where size in Unit value property. This sample shows how to create and save a BarCode image.


## Constructors

| Name | Description |
| --- | --- |
| [__construct](#constructor) |  |

## Properties

| Name | Read/Write | Description |
| --- | --- | --- |
| [FamilyName](#familyname) | Read/Write | Gets the face name of this Font. |
| [Size](#size) | Read-only | Gets size of this FontUnit in Unit value. |
| [Style](#style) | Read/Write | Gets style information for this FontUnit. |

### FontUnit__construct($source) {#constructor}

| Parameter | Type | Description |
| --- | --- | --- |
| `$source` | `` |  |

### FamilyName {#familyname}

**Access:** Read/Write

Gets the face name of this Font.

Sets the face name of this Font.

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

### Size {#size}

**Access:** Read-only

Gets size of this FontUnit in Unit value.

### Style {#style}

**Access:** Read/Write

Gets style information for this FontUnit.

Sets style information for this FontUnit.

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `int` |  |

