FontUnit

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

NameDescription
init

Methods

NameReturn TypeStaticDescription
strstrNoString representation of the FontUnit object.

Properties

NameTypeDescription
family_namestrGets the face name of this Font.
sizeOptional[Unit]Gets size of this FontUnit in Unit value. Raises: IllegalArgumentException: if the Size parameter value is less than or equal to 0.
styleFontStyleGets style information for this FontUnit.

FontUnit Constructor

__init__(self, Union[FontUnit, Any] source)
ParameterTypeDescription
sourceUnion[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.

ParameterTypeDescription
valuestr

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.

ParameterTypeDescription
valueUnit

FontUnit.style

Type: FontStyle

Gets style information for this FontUnit.

Sets style information for this FontUnit.

ParameterTypeDescription
valueFontStyle