Class CadTextStyleSettings
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
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.
public sealed class CadTextStyleSettings
- Inheritance
-
CadTextStyleSettings
- Inherited Members
Remarks
The style romans.shx 2.5 high, three quarters wide is FileName romans.shx, Height 2.5 and
WidthFactor 0.75; the style of Arial bold is FileName arial.ttf and a Font of the
typeface Arial, bold.
Properties
- Annotative
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
Gets or sets whether the texts run backwards (flag 2 of group 71).
- BigFontFileName
Gets or sets the big font (group 4); empty for none.
- FileName
Gets or sets the file of the font (group 3): romans.shx, arial.ttf.
- Font
Gets or sets the TrueType font, written as the style's extended data of ACAD; of no typeface for an SHX font.
- Height
Gets or sets the fixed height of the texts (group 40): nought where each text gives its own, as TEXT then asks.
- ObliqueAngle
Gets or sets the slant of the letters in radians (group 50, written in degrees), from -85 to 85 degrees.
- UpsideDown
Gets or sets whether the texts stand upside down (flag 4 of group 71).
- Vertical
Gets or sets whether the texts run down (flag 4 of group 70), which only an SHX font of two orientations draws.
- WidthFactor
Gets or sets how wide the letters are for their height (group 41): 1 as drawn.
Methods
- Of(DxfTextStyleTableRecord)
Reads the settings of a style.
- SameAs(CadTextStyleSettings)
Gets whether two settings write the same style.