Table of Contents

CadTextStyleSettings

from OpenCAD2D import CadTextStyleSettings

class CadTextStyleSettings(System.Object) ยท CadTextStyleSettings in the .NET reference

What AutoCAD's Text Style dialog sets of a style: its font (an SHX file with its big font, or a TrueType typeface with its file), its fixed height, its width and slant, and backwards, upside down and vertical.

Constructors

__init__

def __init__(self) -> None

Properties and fields

Annotative

.NET

@property
def Annotative(self) -> bool
@Annotative.setter
def Annotative(self, value: bool) -> None

Gets or sets whether the style is annotative (the style's extended data AcadAnnotative): TEXT and MTEXT made in it are annotative at the annotation scale and drawn at the height their paper gives them. Only a drawing of AutoCAD 2007 or later can hold it; in an older one the style stays as it is.

Backwards

.NET

@property
def Backwards(self) -> bool
@Backwards.setter
def Backwards(self, value: bool) -> None

Gets or sets whether the texts run backwards (flag 2 of group 71).

BigFontFileName

.NET

@property
def BigFontFileName(self) -> str
@BigFontFileName.setter
def BigFontFileName(self, value: str | None) -> None

Gets or sets the big font (group 4); empty for none.

FileName

.NET

@property
def FileName(self) -> str
@FileName.setter
def FileName(self, value: str | None) -> None

Gets or sets the file of the font (group 3): romans.shx, arial.ttf.

Font

.NET

@property
def Font(self) -> DxfFontDescriptor
@Font.setter
def Font(self, value: DxfFontDescriptor) -> None

Gets or sets the TrueType font, written as the style's extended data of ACAD; of no typeface for an SHX font.

Height

.NET

@property
def Height(self) -> float
@Height.setter
def Height(self, value: float) -> None

Gets or sets the fixed height of the texts (group 40): nought where each text gives its own, as TEXT then asks.

ObliqueAngle

.NET

@property
def ObliqueAngle(self) -> float
@ObliqueAngle.setter
def ObliqueAngle(self, value: float) -> None

Gets or sets the slant of the letters in radians (group 50, written in degrees), from -85 to 85 degrees.

UpsideDown

.NET

@property
def UpsideDown(self) -> bool
@UpsideDown.setter
def UpsideDown(self, value: bool) -> None

Gets or sets whether the texts stand upside down (flag 4 of group 71).

Vertical

.NET

@property
def Vertical(self) -> bool
@Vertical.setter
def Vertical(self, value: bool) -> None

Gets or sets whether the texts run down (flag 4 of group 70), which only an SHX font of two orientations draws.

WidthFactor

.NET

@property
def WidthFactor(self) -> float
@WidthFactor.setter
def WidthFactor(self, value: float) -> None

Gets or sets how wide the letters are for their height (group 41): 1 as drawn.

Methods

Of

.NET

@staticmethod
def Of(style: DxfTextStyleTableRecord) -> CadTextStyleSettings

Reads the settings of a style.

SameAs

.NET

def SameAs(self, other: CadTextStyleSettings) -> bool

Gets whether two settings write the same style.