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

NameTypeGet/SetBrief
HeightintYes/YesThe font size in DSUs.
NamestrYes/YesThe name of this text style.
StrokeWidthintYes/YesThe line width of this stroke style.
TypeTypeYes/YesThe font type of this text style. Changing type may remove some parameters from the font.
TypefacestrYes/YesThe font name of this typeface style.
UnderlinedboolYes/YesWhether this stroke or typeface style should be underlined.
UsedboolYes/NoWhether this text style is used by any text positions on the design.

Enumerations

Type

Font types for text styles.

NameValueDescription
Stroke0Vector stroke font.
Typeface1An installed font.
Barcode2A special font that renders a barcode.
DataMatrix3A special font that renders a data matrix.
QR4A 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.