Struct DxfFontDescriptor
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
The TrueType font of a text style, as AutoCAD's FontDescriptor: its typeface, bold, italic, character set and
pitch and family, kept in the extended data of the application ACAD of the STYLE record.
public readonly struct DxfFontDescriptor : IEquatable<DxfFontDescriptor>
- Implements
- Inherited Members
Remarks
The style of Arial, neither bold nor italic, is new DxfFontDescriptor("Arial", false, false, 0, 34), written as
AutoCAD writes it: 1001 ACAD, 1000 Arial, 1071 34, the 1071 holding the pitch and family in its lowest byte, the
character set in the next, italic as 0x1000000 and bold as 0x2000000. A style of a font of shapes (an SHX) has none:
its typeface is empty.
Constructors
- DxfFontDescriptor(string, bool, bool, int, int)
Initializes a font, as AutoCAD's
FontDescriptor(typeFace, bold, italic, characters, pitchAndFamily).
Properties
- Bold
Gets whether the font is bold, as AutoCAD's
Bold.
- CharacterSet
Gets the character set, as AutoCAD's
CharacterSet.
- Italic
Gets whether the font is italic, as AutoCAD's
Italic.
- PitchAndFamily
Gets the pitch and family, as AutoCAD's
PitchAndFamily.
- TypeFace
Gets the name of the typeface, as AutoCAD's
TypeFace; empty for none.
Methods
- Equals(DxfFontDescriptor)
Gets whether the font equals another.
- Equals(object)
Gets whether the font equals an object.
- GetHashCode()
Gets a hash code of the font, the same for two equal ones.
- ToString()
Gives the font as a line: its typeface, bold and italic where it is.
Operators
- operator ==(DxfFontDescriptor, DxfFontDescriptor)
Gets whether two fonts are equal.
- operator !=(DxfFontDescriptor, DxfFontDescriptor)
Gets whether two fonts differ.