设置字体 - DrawGuiSetFont
函数简介
设置文本对象的字体与字号。
接口名称
DrawGuiSetFont
DLL调用
int32_t DrawGuiSetFont(int64_t instance, int64_t handle, char* fontPath, int32_t fontSize);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| handle | 长整数型 | 文本对象句柄。 |
| fontPath | 字符串 | 字体文件路径(ttf/otf)。 |
| fontSize | 整数型 | 字号(像素)。 |
示例
DrawGuiSetFont(ola, text, "C:/Windows/Fonts/msyh.ttc", 18);
返回值
0 失败,1 成功。
