

```
1. typedef struct OH_Drawing_FontStyleStruct {...} OH_Drawing_FontStyleStruct
```

## 概述

PhonePC/2in1TabletTVWearable

定义字体样式信息的结构体。

**起始版本：** 12

**相关模块：** [Drawing](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/capi-drawing)

**所在头文件：** [drawing\_text\_typography.h](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/capi-drawing-text-typography-h)

## 汇总

PhonePC/2in1TabletTVWearable

### 成员变量

PhonePC/2in1TabletTVWearable

展开

| 名称 | 描述 |
| --- | --- |
| [OH\_Drawing\_FontWeight](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/capi-drawing-text-typography-h#oh_drawing_fontweight) weight | 字体字重。 |
| [OH\_Drawing\_FontWidth](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/capi-drawing-text-typography-h#oh_drawing_fontwidth) width | 字体字宽。 |
| [OH\_Drawing\_FontStyle](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/capi-drawing-text-typography-h#oh_drawing_fontstyle) slant | 字体斜体。 |