openharmony 鸿蒙 capi-drawing-oh-drawing-strutstyle

2026-08-25 浏览 (1)

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

NameDescription
OH_Drawing_FontWeight weightFont weight used for calculating the strut.
OH_Drawing_FontStyle styleFont style used for calculating the strut.
double sizeSize of the ascent plus descent in the logical pixels.
double heightScaleScale factor of the line height.
bool heightOverrideWhether to enable height override. true: enabled; false: disabled.
bool halfLeadingWhether to enable half leading. true: enabled; false: disabled.
double leadingCustom leading to be applied to the strut.
bool forceStrutHeightWhether to forcibly use the strut height for all rows. true means yes; false otherwise.
size_t familiesSizeNumber of font families.
char** familiesDouble 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

openharmony 鸿蒙 capi-drawing-brush-h

openharmony 鸿蒙 capi-nativewindow

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/0zq4qNns