![]() |
Kiwano Engine v1.3.x
|
字体 更多...
#include <Font.h>
Public 成员函数 | |
| Font (StringView family_name, float size, uint32_t weight=FontWeight::Normal, FontPosture posture=FontPosture::Normal, FontStretch stretch=FontStretch::Normal) | |
| 创建字体,根据字体族名称自动搜索已预加载的 FontCollection 缓存,查找失败时使用系统字体 更多... | |
| Font (RefPtr< FontCollection > collection, float size, uint32_t weight=FontWeight::Normal, FontPosture posture=FontPosture::Normal, FontStretch stretch=FontStretch::Normal) | |
| 创建字体,使用字体集合中的第一个字体族名称 更多... | |
Public 属性 | |
| float | size |
| uint32_t | weight |
| FontPosture | posture |
| FontStretch | stretch |
| String | family_name |
| RefPtr< FontCollection > | collection |
字体
| kiwano::Font::Font | ( | StringView | family_name, |
| float | size, | ||
| uint32_t | weight = FontWeight::Normal, |
||
| FontPosture | posture = FontPosture::Normal, |
||
| FontStretch | stretch = FontStretch::Normal |
||
| ) |
创建字体,根据字体族名称自动搜索已预加载的 FontCollection 缓存,查找失败时使用系统字体
| family_name | 字体族 |
| size | 字号 |
| weight | 字体粗细 |
| posture | 字体形态 |
| kiwano::Font::Font | ( | RefPtr< FontCollection > | collection, |
| float | size, | ||
| uint32_t | weight = FontWeight::Normal, |
||
| FontPosture | posture = FontPosture::Normal, |
||
| FontStretch | stretch = FontStretch::Normal |
||
| ) |
创建字体,使用字体集合中的第一个字体族名称
| collection | 字体集合 |
| size | 字号 |
| weight | 字体粗细 |
| posture | 字体形态 |