OH_Drawing_StrutStyle
typedef struct {...} OH_Drawing_StrutStyle
Overview
This 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.
Since: 12
Related module: Drawing
Header file: drawing_text_typography.h
Summary
Member Variables
| Name | Description |
|---|---|
| OH_Drawing_FontWeight weight | Font weight used for calculating the strut. |
| OH_Drawing_FontStyle style | Font style used for calculating the strut. |
| double size | Size of the ascent plus descent in the logical pixels. |
| double heightScale | Scale factor of the line height. |
| bool heightOverride | Whether to enable height override. true: enabled; false: disabled. |
| bool halfLeading | Whether to enable half leading. true: enabled; false: disabled. |
| double leading | Custom leading to be applied to the strut. |
| bool forceStrutHeight | Whether to forcibly use the strut height for all rows. true means yes; false otherwise. |
| size_t familiesSize | Number of font families. |
| char** families | Double pointer to the font families used for calculating the strut. |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 capi-drawing-gpu-context-h
openharmony 鸿蒙 capi-drawing-nativepixelmap-
openharmony 鸿蒙 capi-nativevsync-oh-nativevsync-expectedraterange
openharmony 鸿蒙 capi-drawing-oh-drawing-brush
openharmony 鸿蒙 capi-drawing-oh-drawing-image-info
openharmony 鸿蒙 capi-drawing-text-linetypography-h
openharmony 鸿蒙 capi-oh-nativeimage-oh-nativeimage
openharmony 鸿蒙 capi-drawing-typeface-h