Inherits: TextStyle < DesignItem < ScriptObject
A text style describes the appearance of some text items on a design.
A text style can be a stroke font, a Windows font or a “special” font.
Properties
| Name | Type | Get/Set | Brief |
|---|---|---|---|
| Height | int | Yes/Yes | The font size in DSUs. |
| Name | str | Yes/Yes | The name of this text style. |
| StrokeWidth | int | Yes/Yes | The line width of this stroke style. |
| Type | Type | Yes/Yes | The font type of this text style. Changing type may remove some parameters from the font. |
| Typeface | str | Yes/Yes | The font name of this typeface style. |
| Underlined | bool | Yes/Yes | Whether this stroke or typeface style should be underlined. |
| Used | bool | Yes/No | Whether this text style is used by any text positions on the design. |
Enumerations
Type
Font types for text styles.
| Name | Value | Description |
|---|---|---|
| Stroke | 0 | Vector stroke font. |
| Typeface | 1 | An installed font. |
| Barcode | 2 | A special font that renders a barcode. |
| DataMatrix | 3 | A special font that renders a data matrix. |
| QR | 4 | A special font that renders a QR code. |
Property Details
Height
Type: int
The font size in DSUs.
Name
Type: str
The name of this text style.
StrokeWidth
Type: int
The line width of this stroke style.
Type
Type: Type
The font type of this text style. Changing type may remove some parameters from the font.
Typeface
Type: str
The font name of this typeface style.
Underlined
Type: bool
Whether this stroke or typeface style should be underlined.
Used
Type: bool
Whether this text style is used by any text positions on the design.