Class DxfTextStyleTableRecord
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
A text style of a DXF file, as AutoCAD's TextStyleTableRecord, read from its STYLE record: its name, its font,
its height, width and slant.
public sealed class DxfTextStyleTableRecord : DxfSymbolTableRecord
- Inheritance
-
DxfTextStyleTableRecord
- Inherited Members
Remarks
The style ROMANS of the font romans.shx, 2.5 high, three quarters wide and slanted 15 degrees is FileName
romans.shx, TextSize 2.5, XScale 0.75 and ObliquingAngle 0.2618 radians.
A style of a file is changed by its setters, its record written anew, every other group kept; a setter given the value its getter gives changes nothing. A style made in code is of the font txt, its texts of no fixed height, as wide as high and upright until it is given others, and is written when it is added to a DxfTextStyleTable.
Renamed, the texts, MTEXTs, attributes and tables written in it and the header's $TEXTSTYLE follow; Standard is
renamed as any other, as AutoCAD 2021's -RENAME renames it. Erased, as
AutoCAD's Text Style dialog deletes one, only where nothing is written in it and it is neither Standard nor current.
Constructors
- DxfTextStyleTableRecord()
Initializes a style made in code, to be added to a DxfTextStyleTable with its Name given.
Properties
- BigFontFileName
Gets or sets the file of the style's big font (group 4), as AutoCAD's
BigFontFileName; empty where the record gives none. Where the drawing's FontSearchPath finds it, the letters of the style's texts are measured in it beside the style's font, as that says: gbcbig.shx's δΈ 4 high 2.912 wide.
- FileName
Gets or sets the file of the style's font (group 3), as AutoCAD's
FileName:romans.shx,arial.ttf; empty where the record gives none.
- FlagBits
Gets or sets the flags of the style's text generation (group 71), as AutoCAD's
FlagBits: 2 backwards, 4 upside down.
- Font
Gets or sets the TrueType font of the style, as AutoCAD's
Font: from the style's extended data of the applicationACAD, its typeface (1000) and its flags (1071), as DxfFontDescriptor says; a font of no typeface where it has none, as a style of an SHX font.
- IsShapeFile
Gets whether the style is of shapes, not letters (flag 1 of group 70), as AutoCAD's
IsShapeFile.
- IsVertical
Gets or sets whether the style's texts run down (flag 4 of group 70), as AutoCAD's
IsVertical.
- ObliquingAngle
Gets or sets the slant of the style's letters (group 50) in radians, as AutoCAD's
ObliquingAngle: the record writes degrees, so 0.2618 radians is written as 15.
- PriorSize
Gets the height last used with the style (group 42), as AutoCAD's
PriorSize: 2.5 for a style made in code.
- TextSize
Gets or sets the fixed height of the style's texts (group 40), as AutoCAD's
TextSize: nought where each text gives its own.
- XScale
Gets or sets how wide the style's letters are for their height (group 41), as AutoCAD's
XScale: 1 where the record gives none.
Methods
- Erase()
Erases the style from its table, as AutoCAD's
Eraseof a text style nothing is written in: its STYLE record taken out, the table's count lowered by one, its handle not given again.