![]() |
Kiwano Engine v1.3.x
|
文本样式 更多...
#include <TextStyle.h>
Public 成员函数 | |
| TextStyle () | |
| 构建默认文本样式 | |
| TextStyle (Font font) | |
| 构建文本样式 更多... | |
| TextStyle (StringView font_family, float font_size, uint32_t font_weight=FontWeight::Normal) | |
| 构建文本样式 更多... | |
Public 属性 | |
| bool | show_underline |
| 显示下划线 | |
| bool | show_strikethrough |
| 显示删除线 | |
| float | line_spacing |
| 行间距 | |
| float | wrap_width |
| 自动换行宽度 | |
| TextWordWrapping | word_wrapping |
| 换行模式 | |
| TextAlign | alignment |
| 对齐方式 | |
| Font | font |
| 字体 | |
文本样式
| kiwano::TextStyle::TextStyle | ( | Font | font | ) |
构建文本样式
| font | 字体 |
| kiwano::TextStyle::TextStyle | ( | StringView | font_family, |
| float | font_size, | ||
| uint32_t | font_weight = FontWeight::Normal |
||
| ) |
构建文本样式
| font_family | 字体族 |
| font_size | 字体大小 |
| font_weight | 字体粗细 |