1# OH_Drawing_StrutStyle 2 3 4## Overview 5 6The OH_Drawing_StrutStyle struct describes a strut style. The strut style determines the line spacing, baseline alignment mode, and other properties related to the line height when drawing text. 7 8**Since**: 12 9 10**Related module**: [Drawing](_drawing.md) 11 12 13## Summary 14 15 16### Member Variables 17 18| Name| Description| 19| -------- | -------- | 20| [OH_Drawing_FontWeight](_drawing.md#oh_drawing_fontweight) [weight](#weight) | Font weight used for calculating the strut. | 21| [OH_Drawing_FontStyle](_drawing.md#oh_drawing_fontstyle) [style](#style) | Font style used for calculating the strut. | 22| double [size](#size) | Size of the ascent plus descent in the logical pixels. | 23| double [heightScale](#heightscale) | Line height. | 24| bool [heightOverride](#heightoverride) | Whether to enable the feature to override the height. The value **true** means to enable the feature, and **false** means the opposite. | 25| bool [halfLeading](#halfleading) | Whether to enable half leading. The value **true** means to enable half leading, and **false** means the opposite. | 26| double [leading](#leading) | Custom leading to be applied to the strut. | 27| bool [forceStrutHeight](#forcestrutheight) | Whether to forcibly use the strut height for all rows. The value **true** means to forcibly use the strut height for all rows, and **false** means the opposite. | 28| size_t [familiesSize](#familiessize) | Number of font families. | 29| char \*\* [families](#families) | Double pointer to the font families used for calculating the strut. | 30 31 32## Member Variable Description 33 34 35### families 36 37``` 38char** OH_Drawing_StrutStyle::families 39``` 40**Description** 41 42Double pointer to the font families used for calculating the strut. 43 44 45### familiesSize 46 47``` 48size_t OH_Drawing_StrutStyle::familiesSize 49``` 50 51**Description** 52 53Number of font families. 54 55 56### forceStrutHeight 57 58``` 59bool OH_Drawing_StrutStyle::forceStrutHeight 60``` 61**Description** 62 63Whether to forcibly use the strut height for all rows. The value **true** means to forcibly use the strut height for all rows, and **false** means the opposite. 64 65 66### halfLeading 67 68``` 69bool OH_Drawing_StrutStyle::halfLeading 70``` 71**Description** 72 73Whether to enable half leading. The value **true** means to enable half leading, and **false** means the opposite. 74 75 76### heightOverride 77 78``` 79bool OH_Drawing_StrutStyle::heightOverride 80``` 81 82**Description** 83 84Whether to enable the feature to override the height. The value **true** means to enable the feature, and **false** means the opposite. 85 86 87### heightScale 88 89``` 90double OH_Drawing_StrutStyle::heightScale 91``` 92 93**Description** 94 95Line height. 96 97 98### leading 99 100``` 101double OH_Drawing_StrutStyle::leading 102``` 103 104**Description** 105 106Custom leading to be applied to the strut. 107 108 109### size 110 111``` 112double OH_Drawing_StrutStyle::size 113``` 114 115**Description** 116 117Size of the ascent plus descent in the logical pixels. 118 119 120### style 121 122``` 123OH_Drawing_FontStyle OH_Drawing_StrutStyle::style 124``` 125 126**Description** 127 128Font style used for calculating the strut. 129 130 131### weight 132 133``` 134OH_Drawing_FontWeight OH_Drawing_StrutStyle::weight 135``` 136 137**Description** 138 139Font weight used for calculating the strut. 140