• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DomCR / ACadSharp / 12905761471

22 Jan 2025 10:03AM UTC coverage: 2.0% (-74.0%) from 75.963%
12905761471

push

github

DomCR
version 1.0.6

104 of 7676 branches covered (1.35%)

Branch coverage included in aggregate %.

590 of 27024 relevant lines covered (2.18%)

5.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/ACadSharp/Tables/TextStyle.cs
1
using ACadSharp.Attributes;
2
using ACadSharp.Entities;
3

4
namespace ACadSharp.Tables
5
{
6
        /// <summary>
7
        /// Represents a <see cref="TextStyle"/> entry.
8
        /// </summary>
9
        /// <remarks>
10
        /// Object name <see cref="DxfFileToken.TableStyle"/> <br/>
11
        /// Dxf class name <see cref="DxfSubclassMarker.TextStyle"/>
12
        /// </remarks>
13
        [DxfName(DxfFileToken.TableStyle)]
14
        [DxfSubClass(DxfSubclassMarker.TextStyle)]
15
        public class TextStyle : TableEntry
16
        {
17
                public const string DefaultName = "Standard";
18

19
                /// <inheritdoc/>
20
                public override ObjectType ObjectType => ObjectType.STYLE;
×
21

22
                /// <inheritdoc/>
23
                public override string ObjectName => DxfFileToken.TableStyle;
×
24

25
                /// <inheritdoc/>
26
                public override string SubclassMarker => DxfSubclassMarker.TextStyle;
×
27

28
                /// <summary>
29
                /// Default text style.
30
                /// </summary>
31
                public static TextStyle Default { get { return new TextStyle(DefaultName); } }
×
32

33
                /// <summary>
34
                /// Style state flags.
35
                /// </summary>
36
                public new StyleFlags Flags { get { return (StyleFlags)base.Flags; } set { base.Flags = (StandardFlags)value; } }
×
37

38
                /// <summary>
39
                /// Primary font file name.
40
                /// </summary>
41
                [DxfCodeValue(3)]
42
                public string Filename { get; set; } = string.Empty;
×
43

44
                /// <summary>
45
                /// Big-font file name, blank if none.
46
                /// </summary>
47
                [DxfCodeValue(4)]
48
                public string BigFontFilename { get; set; }
×
49

50
                /// <summary>
51
                /// Fixed text height; 0 if not fixed
52
                /// </summary>
53
                [DxfCodeValue(40)]
54
                public double Height { get; set; }
×
55

56
                /// <summary>
57
                /// Width factor
58
                /// </summary>
59
                [DxfCodeValue(41)]
60
                public double Width { get; set; } = 1.0;
×
61

62
                /// <summary>
63
                /// Last height used
64
                /// </summary>
65
                [DxfCodeValue(42)]
66
                public double LastHeight { get; set; }
×
67

68
                /// <summary>
69
                /// Specifies the oblique angle of the object.
70
                /// </summary>
71
                /// <value>
72
                /// The angle in radians within the range of -85 to +85 degrees. A positive angle denotes a lean to the right; a negative value will have 2*PI added to it to convert it to its positive equivalent.
73
                /// </value>
74
                [DxfCodeValue(DxfReferenceType.IsAngle, 50)]
75
                public double ObliqueAngle { get; set; } = 0.0;
×
76

77
                /// <summary>
78
                /// Mirror flags.
79
                /// </summary>
80
                [DxfCodeValue(71)]
81
                public TextMirrorFlag MirrorFlag { get; set; } = TextMirrorFlag.None;
×
82

83
                /// <summary>
84
                /// A long value which contains a true-type font’s pitch and family, character set, and italic and bold flags
85
                /// </summary>
86
                [DxfCodeValue(DxfReferenceType.Optional, 1071)]
87
                public FontFlags TrueType { get; set; } = FontFlags.Regular;
×
88

89
                /// <summary>
90
                /// Flag that indicates weather this <see cref="TextStyle"/> is linked to a Shape file
91
                /// </summary>
92
                public bool IsShapeFile { get { return this.Flags.HasFlag(StyleFlags.IsShape); } }
×
93

94
                internal TextStyle() : base() { }
×
95

96
                /// <inheritdoc/>
97
                public TextStyle(string name) : base(name) { }
×
98
        }
99
}
100

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc