API Reference > OdDb Classes > OdDbTextStyleTableRecord Class
OdDbTextStyleTableRecord Class
OdDbTextStyleTableRecordOdDbTextStyleTableRecordOdDbTextStyleTableRecord
Syntax
C++
class OdDbTextStyleTableRecord : public OdDbSymbolTableRecord;

DbTextStyleTableRecord.h

 

This class implements the text style record object, which represents a text style in the database. This class inherits the base functionality of named records.

TD_Db 

Example of Working with the Text Style Table Object 

Example of Working with the Text Style Record Object 

Working with Text Styles 

OdDbTextStyleTable class

 
Name 
Description 
 
Builds an instance of the text style record object. 
 
Name 
Description 
 
Returns the name of the /big-font/ file associated with this text style (DXF 4). 
 
Reads the .dwg file data of this object.
 
 
This is DWGMAP_DECLARE_MEMBERS, a member of class OdDbTextStyleTableRecord. 
 
Writes the .dwg file data of this object.
 
 
Reads the DXF format data of this object from the specified filer.
 
 
Reads the DXF data of this object.
 
 
Reads the DXF R12 format data of this object.
 
 
Writes the DXF data of this object.
 
 
Writes the DXF data of this object.
 
 
Returns the name of the /uni-font/ file associated with this text style (DXF 3). 
 
font 
Gets the characteristics of the Windows-font associated with the text style.
 
 
Determines whether text is drawn backward or forward from the start position (DXF 71, bit 0x02) and returns True if text is backward or False if text is forward. 
 
Determines whether the font file associated with this text style should be interpreted as a set of shapes or letters (DXF 70, bit 0x01) and returns True if the font file is a set of shapes or False if the font file is a set of letters. 
 
Determines whether letters are placed up or down relative to the baseline when text is drawn (DXF 71, bit 0x04) and returns True if letters are placed up or False if letters are placed upside down. 
 
Determines whether text is drawn vertically or horizontally from the start position (DXF 70, bit 0x04) and returns True if text is vertical or False if text is horizontal. 
 
Returns the obliquing angle in range ±1.48335 radians (±85°) (DXF 50). This angle influences on the lean of letters. Negative angles will have Oda2PI added to them. 
 
Returns the prior size of the text most recently created with this text style (DXF 42). This value is automatically updated after creating any text object that refers to this text style. This value is also used as a default value when the height scale factor is set to zero. 
 
Sets the name of the /big-font/ file and associates this big-font with the text style (DXF 4). This /big-font/ defines the shape of Asian-language letters and special characters for text.
 
 
Sets the name of the /uni-font/ file and associates this uni-font with the text style (DXF 3). This /uni-font/ defines the shape of typical letters for text.
 
 
Associates the /Windows-font/ with the text style and sets its characteristics.
 
 
Sets the direction typeface as a Boolean value (DXF 71, bit 0x02). The initial value is False (Forward) by default.
 
 
Sets the interpretation of the associated font file as a Boolean value (DXF 70, bit 0x01). The initial value is False (Letters) by default.
 
 
Sets the letter side typeface as a Boolean value (DXF 71, bit 0x04). The initial value is False (Upside) by default.
 
 
Sets the orientation typeface as a Boolean value (DXF 70, bit 0x04). The initial value is False (Horizontal) by default.
 
 
Sets the obliquing angle of letters in range ±1.48335 radians (±85°) (DXF 50). A positive angle leans the letters clockwise (to the right). A negative value leans the letters counterclockwise (to the left). A negative value is converted to its positive equivalent by adding the value 2*PI. The initial value is 0.0 by default.
 
 
Sets the prior size of the text most recently created with this text style (DXF 42). This value is automatically updated after creating any text object that refers to this text style.
 
 
Sets the text size which is the height scale factor of the text boundary (DXF 40). This factor influences on the text width and text height together and is used for proportional scaling of letters, spaces, and the text boundary. A value less than 1.0 decreases the text. A value greater than 1.0 increases the text. The initial value is 0.0 by default.
 
 
Sets the width scale factor of the text boundary (DXF 41). This factor influences only on the text width and is used for scaling of letters and spaces when the height is constant. A value less than 1.0 condenses the text. A value greater than 1.0 expandes the text. The initial value is 1.0 by default.
 
 
Called as the first operation as this object is being closed, for database -resident objects only. 
 
Called as the first operation as this object is being erased or unerased.
 
 
overridables 
 
Called as the first operation of the handOverTo function.
 
 
Sets the values of this object's subentity traits, and returns with the calling object's subentity traits.
 
 
Returns the height scale factor of the text boundary (DXF 40). This factor influences on the width and height together and is used for proportional scaling of letters, spaces, and the text boundary. 
 
Returns the width scale factor of the text boundary (DXF 41). This factor influences only on the width and is used for scaling of letters and spaces when the height is constant. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.