FontUnit
Contents
[
Hide
]FontUnit class
Module: aspose_barcode.generation.font_unit
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 |
|---|---|
| init |
Methods
| Name | Return Type | Static | Description |
|---|---|---|---|
| str | str | No | String representation of the FontUnit object. |
Properties
| Name | Type | Description |
|---|---|---|
| family_name | str | Gets the face name of this Font. |
| size | Optional[Unit] | Gets size of this FontUnit in Unit value. Raises: IllegalArgumentException: if the Size parameter value is less than or equal to 0. |
| style | FontStyle | Gets style information for this FontUnit. |
FontUnit Constructor
__init__(self, Union[FontUnit, Any] source)
| Parameter | Type | Description |
|---|---|---|
source | Union[FontUnit, Any] |
FontUnit.str
__str__(self) -> str
String representation of the FontUnit object.
Return Type: str
FontUnit.family_name
Type: str
Gets the face name of this Font.
Sets the face name of this Font.
| Parameter | Type | Description |
|---|---|---|
value | str |
FontUnit.size
Type: Optional[Unit]
Gets size of this FontUnit in Unit value. Raises: IllegalArgumentException: if the Size parameter value is less than or equal to 0.
Sets size of this FontUnit in Unit value. Raises: IllegalArgumentException: if the Size parameter value is less than or equal to 0.
| Parameter | Type | Description |
|---|---|---|
value | Unit |
FontUnit.style
Type: FontStyle
Gets style information for this FontUnit.
Sets style information for this FontUnit.
| Parameter | Type | Description |
|---|---|---|
value | FontStyle |