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

DomCR / ACadSharp / 17737836230

15 Sep 2025 03:12PM UTC coverage: 2.092% (-76.2%) from 78.245%
17737836230

push

github

web-flow
Merge pull request #790 from DomCR/addflag-refactor

addflag refactor

141 of 9225 branches covered (1.53%)

Branch coverage included in aggregate %.

0 of 93 new or added lines in 10 files covered. (0.0%)

24910 existing lines in 372 files now uncovered.

724 of 32119 relevant lines covered (2.25%)

5.76 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/>
UNCOV
20
                public override ObjectType ObjectType => ObjectType.STYLE;
×
21

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

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

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

33
                /// <summary>
34
                /// Style state flags.
35
                /// </summary>
UNCOV
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)]
UNCOV
42
                public string Filename { get; set; } = string.Empty;
×
43

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

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

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

62
                /// <summary>
63
                /// Last height used
64
                /// </summary>
65
                [DxfCodeValue(42)]
UNCOV
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)]
UNCOV
75
                public double ObliqueAngle { get; set; } = 0.0;
×
76

77
                /// <summary>
78
                /// Mirror flags.
79
                /// </summary>
80
                [DxfCodeValue(71)]
UNCOV
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)]
UNCOV
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>
UNCOV
92
                public bool IsShapeFile { get { return this.Flags.HasFlag(StyleFlags.IsShape); } }
×
93

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

96
                /// <inheritdoc/>
UNCOV
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